Add flag for windows in support Makefile

This commit is contained in:
Edwin Brady 2020-05-23 16:47:10 +01:00
parent 006236fde8
commit 1857e4b3fe

View File

@ -10,6 +10,7 @@ CFLAGS += -O2
SRCS = $(wildcard *.c) SRCS = $(wildcard *.c)
ifeq ($(OS), windows) ifeq ($(OS), windows)
SRCS += windows/win_utils.c windows/win_hack.c SRCS += windows/win_utils.c windows/win_hack.c
LDFLAGS += -lws2_32
endif endif
OBJS = $(SRCS:.c=.o) OBJS = $(SRCS:.c=.o)
DEPS = $(OBJS:.o=.d) DEPS = $(OBJS:.o=.d)