From: Sam Moore Date: Tue, 6 Aug 2013 10:55:15 +0000 (+0800) Subject: Makefile for webserver test X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=9579cea007c23f68ea1f880022c834a3d943a152;p=matches%2FMCTX3420.git Makefile for webserver test I always forget the Makefile. --- diff --git a/testing/web2io/Makefile b/testing/web2io/Makefile new file mode 100644 index 0000000..24310f3 --- /dev/null +++ b/testing/web2io/Makefile @@ -0,0 +1,29 @@ +# Makefile for web2io testing stuff +CXX = gcc +FLAGS = -std=c99 -Wall -Werror -pedantic -g +LIB = +OBJ = network.o log.o webserver.o +RM = rm -f + +BIN = webserver + +$(BIN) : $(OBJ) + $(CXX) $(FLAGS) -o $(BIN) $(OBJ) + + +%.o : %.c + $(CXX) $(FLAGS) -c $< + + + +clean : + $(RM) $(BIN) + $(RM) *.o + +clean_full: #cleans up all backup files + $(RM) $(BIN) $(OBJ) $(LINKOBJ) + $(RM) *.*~ + $(RM) *~ + + +