include GNUmakevars
include GNUmakerules

CFLAGS := $(CFLAGS) $(INCLUDES)

http: http.o 
	$(CC) $^ $(ANTLIB) $(SOCKLIB) -o $@

clean:
	rm -f *.o http core foo bar test_base64

install: $(ROOT)$(BINDIR)/http $(ROOT)$(MANDIR)/man1/http.1

install_all:
	make install ROOT=/nfs/wifosv
	make install ROOT=/nfs/wsrcom
	make install ROOT=/nfs/wsrdb
	make install ROOT=/nfs/wsrtest


test_base64: base64.c
	$(CC) $(CFLAGS) -DTEST $^ -o $@

distclean: clean
	rm -f *.bak *.d
