aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 6707703263a3625de7a4e2428171592015aee45d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.POSIX:

CONFIGFILE = config.mk
include $(CONFIGFILE)

all: file2key

file2key: file2key.o
	$(CC) -o $@ file2key.o $(LDFLAGS)

file2key.o: file2key.c settings.h config.h
	$(CC) -c -o $@ file2key.c $(CFLAGS) $(CPPFLAGS)

install: file2key
	mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
	cp -- file2key "$(DESTDIR)$(PREFIX)/bin/"

uninstall:
	-rm -f -- "$(DESTDIR)$(PREFIX)/bin/file2key"

clean:
	-rm -rf -- *.o file2key

.PHONY: all install uninstall clean