Commit | Line | Data |
---|---|---|
1 | all: statserve statdbput | |
2 | ||
3 | CC = gcc | |
4 | CFLAGS = -g -Wall | |
5 | PREFIX = /usr/local | |
6 | ||
7 | statserve: statserve.o dbsrc.o fssrc.o | |
8 | $(CC) $(CFLAGS) -o $@ $^ -lht -ldb | |
9 | ||
10 | statdbput: statdbput.o | |
11 | $(CC) $(CFLAGS) -o $@ $^ -lht -ldb | |
12 | ||
13 | %.o: %.c *.h | |
14 | $(CC) $(CFLAGS) -c -o $@ $< | |
15 | ||
16 | clean: | |
17 | rm -f *.o statserve statdbput | |
18 | ||
19 | install: statserve statdbput | |
20 | install statserve $(DESTDIR)$(PREFIX)/bin/; \ | |
21 | install statdbput $(DESTDIR)$(PREFIX)/bin/; |