diff --git a/src/mastersrv/Makefile b/src/mastersrv/Makefile
index 912055e37445b50fa6fa441f2db8016910d91647..4069c1c61be8173b48f48bc4a1d416b94f07c8aa 100644 (file)
--- a/src/mastersrv/Makefile
+++ b/src/mastersrv/Makefile
-CC:=gcc
-CFLAGS:=-std=c99 -Wall -Werror -pedantic -O2
-SOURCES:=master.c
+CC := gcc
+CFLAGS := -std=gnu11 -Wall -Werror -Wno-unused-function -pedantic -O2
+SOURCES := master.c
ifeq ($(OS),Windows_NT)
- BIN:=bin\\d2df_master.exe
- DEL:=del
- LDFLAGS:=-lenet -lws2_32 -lwinmm -static-libgcc
+ BIN := bin\\d2df_master.exe
+ DEL := del
+ LDFLAGS := -lenet -lws2_32 -lwinmm -static-libgcc -static
else
- BIN:=bin/d2df_master
- DEL:=rm -f
- LDFLAGS:=-lenet
- CFLAGS += -Llibs -I.
+ BIN := bin/d2df_master
+ DEL := rm -f
+ LDFLAGS := -lenet
+ CFLAGS += -Llibs -I. -DENABLE_PIPE
endif
all: master
-
+
master:
$(CC) $(CFLAGS) -o $(BIN) $(SOURCES) $(LDFLAGS)
-
+
clean:
- $(DEL) *.o $(BIN)
\ No newline at end of file
+ $(DEL) *.o $(BIN)