From 9579cea007c23f68ea1f880022c834a3d943a152 Mon Sep 17 00:00:00 2001 From: Sam Moore Date: Tue, 6 Aug 2013 18:55:15 +0800 Subject: [PATCH] Makefile for webserver test I always forget the Makefile. --- testing/web2io/Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 testing/web2io/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) *~ + + + -- 2.20.1