aboutsummaryrefslogtreecommitdiff
path: root/client/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'client/makefile')
-rw-r--r--client/makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/client/makefile b/client/makefile
index f79dd11..a23ce4f 100644
--- a/client/makefile
+++ b/client/makefile
@@ -2,20 +2,26 @@ CC = gcc
LD = gcc
RM = rm -f
CFLAGS =
+LDFLAGS = -lncursesw
EXECNAME = main
+include ../shared/os.mk
+
all: $(EXECNAME)
SOURCES := $(wildcard *.c)
HEADERS := $(wildcard *.h)
-# include ../shared/makefile
+include ../shared/makefile
+
+CFLAGS += $(if $(WIN32),-I/mingw64/include/ncursesw,)
+
OBJECTS := $(patsubst %.c,%.o, $(SOURCES))
.o:
$(CC) -c $(CFLAGS) $<
$(EXECNAME): $(OBJECTS)
- $(CC) $(OBJECTS) -o $(EXECNAME)
+ $(CC) $(OBJECTS) -o $(EXECNAME) $(LDFLAGS)
clean::
$(RM) $(EXECNAME) *.o