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