diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-06-05 16:17:32 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-06-05 16:17:32 +0200 |
commit | fa6af27248ec1fcbfdec433ea16154b7bdae045f (patch) | |
tree | 235c9a780abddca59f218d08387e2b7fd1afeb0f /client/makefile | |
parent | 1f8a640303976ddcc3605a9b6af8fb398dc7c300 (diff) |
fix windows compatibility
Diffstat (limited to 'client/makefile')
-rw-r--r-- | client/makefile | 4 |
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 |