aboutsummaryrefslogtreecommitdiff
path: root/client/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-06-05 16:17:32 +0200
committerlonkaars <loek@pipeframe.xyz>2022-06-05 16:17:32 +0200
commitfa6af27248ec1fcbfdec433ea16154b7bdae045f (patch)
tree235c9a780abddca59f218d08387e2b7fd1afeb0f /client/makefile
parent1f8a640303976ddcc3605a9b6af8fb398dc7c300 (diff)
fix windows compatibility
Diffstat (limited to 'client/makefile')
-rw-r--r--client/makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/makefile b/client/makefile
index e48eaeb..a23ce4f 100644
--- a/client/makefile
+++ b/client/makefile
@@ -13,13 +13,15 @@ SOURCES := $(wildcard *.c)
HEADERS := $(wildcard *.h)
include ../shared/makefile
+CFLAGS += $(if $(WIN32),-I/mingw64/include/ncursesw,)
+
OBJECTS := $(patsubst %.c,%.o, $(SOURCES))
.o:
$(CC) -c $(CFLAGS) $<
$(EXECNAME): $(OBJECTS)
- $(CC) $(LDFLAGS) $(OBJECTS) -o $(EXECNAME)
+ $(CC) $(OBJECTS) -o $(EXECNAME) $(LDFLAGS)
clean::
$(RM) $(EXECNAME) *.o