summaryrefslogtreecommitdiff
path: root/src/Makefile-listserver
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile-listserver')
-rwxr-xr-xsrc/Makefile-listserver27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/Makefile-listserver b/src/Makefile-listserver
new file mode 100755
index 0000000..c2cba31
--- /dev/null
+++ b/src/Makefile-listserver
@@ -0,0 +1,27 @@
+
+#CC = /usr/local/gcc/bin/gcc
+CC = gcc
+
+#CFLAGS = -O2 -DSUPPORT_NET_SDL_UDP -I../include -Wall `sdl-config --cflags`
+CFLAGS = -g -O0 -std=c99 -D_GNU_SOURCE=1 -I../include -Wall
+#CFLAGS = -O2 -DDESTDIR=\"$(DESTDIR)\" `sdl-config --cflags` -I../include -Wall
+
+BUILD_DIR = .
+LIBS =
+
+FILES = listServer.o udp.o list.o
+
+listServer: $(FILES)
+ $(CC) $(CFLAGS) $(LIBS) -o $(BUILD_DIR)/listServer $(BUILD_DIR)/*.o
+
+listServer.o: listServer.c
+ $(CC) $(CFLAGS) -o $(BUILD_DIR)/listServer.o -c listServer.c
+
+list.o: list.c ../include/list.h
+ $(CC) $(CFLAGS) -o $(BUILD_DIR)/list.o -c list.c
+
+udp.o: udp.c ../include/udp.h
+ $(CC) $(CFLAGS) -o $(BUILD_DIR)/udp.o -c udp.c
+
+clean:
+ rm -rf *.o *.c~ ../include/*.h~ Makefile~