diff options
Diffstat (limited to 'src/webserver/Makefile')
-rw-r--r-- | src/webserver/Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/webserver/Makefile b/src/webserver/Makefile new file mode 100644 index 000000000..6ceff7e20 --- /dev/null +++ b/src/webserver/Makefile @@ -0,0 +1,32 @@ +CC = gcc -pipe
+MAKE = make
+OPT = -g -O2 -ffast-math
+
+ifeq ($(findstring CYGWIN,$(PLATFORM)), CYGWIN)
+CFLAGS = $(OPT) -Wall -I../common
+else
+CFLAGS = $(OPT) -Wall -I../common
+endif
+
+OBJ = main.o webserver.o ../common/showmsg.o
+LINKOBJ = main.o webserver.o ../common/showmsg.o
+
+all: clean webserver run
+
+clean:
+ rm -f *.o webserver.exe ../common/showmsg.o
+
+webserver: main.o webserver.o ../common/showmsg.o
+ $(CC) $(OPT) -o "Webserver.exe" $(OBJ)
+
+main.o: main.c
+ $(CC) $(OPT) -c main.c -o main.o $(CFLAGS)
+
+webserver.o: webserver.c
+ $(CC) $(OPT) -c webserver.c -o webserver.o $(CFLAGS)
+
+../common/showmsg.o: ../common/showmsg.c
+ $(CC) $(OPT) -c ../common/showmsg.c -o ../common/showmsg.o $(CFLAGS)
+
+run:
+ ./webserver
|