PROG = xaagent OBJS = db.o SHELL = /bin/bash CFLAGS = -Wall -I. -g LDFLAGS = LOADLIBES = -ljson-c -luuid -lsodium -L. -lxaal -pthread -lfcgi -luriparser all: $(PROG) clean: -rm -f *.o *~ core -rm -f run/* proper: clean -rm -f $(PROG) test: all @echo "Starting lighttpd on port 8888" -@rm -f ./run/lighttpd-error.log -@ulimit -c unlimited; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.; /usr/sbin/lighttpd -f ./lighttpd.conf -D ; cat ./run/lighttpd-error.log $(PROG): $(OBJS) Makefile.dep: $(PROG:=.c) $(CC) $(CFLAGS) -MM $^ > $@ include Makefile.dep .PHONY: all clean proper test .svnignore: echo $(PROG).o $(PROG) $(OBJS) | tr ' ' '\012' > $@ svnignore: .svnignore svn propset svn:ignore -F $< .