all: statserve statdbput CC = gcc CFLAGS = -g -Wall PREFIX = /usr/local statserve: statserve.o dbsrc.o fssrc.o $(CC) $(CFLAGS) -o $@ $^ -lht -ldb statdbput: statdbput.o $(CC) $(CFLAGS) -o $@ $^ -lht -ldb %.o: %.c *.h $(CC) $(CFLAGS) -c -o $@ $< clean: rm -f *.o statserve statdbput install: statserve statdbput install statserve $(DESTDIR)$(PREFIX)/bin/; \ install statdbput $(DESTDIR)$(PREFIX)/bin/;