diff --git a/src/mastersrv/Makefile b/src/mastersrv/Makefile
index 912055e37445b50fa6fa441f2db8016910d91647..337a06b7294321f95da0ac2f2bbcb3f067c5e175 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
+ BIN := bin/d2df_master
+ DEL := rm -f
+ LDFLAGS := -lenet
CFLAGS += -Llibs -I.
endif
all: master
-
+
master:
$(CC) $(CFLAGS) -o $(BIN) $(SOURCES) $(LDFLAGS)
-
+
clean:
- $(DEL) *.o $(BIN)
\ No newline at end of file
+ $(DEL) *.o $(BIN)