Make build on Windows (again).

This commit is contained in:
David Given
2022-06-14 19:59:49 +02:00
parent 95d5d42608
commit 521bbd4ea5
3 changed files with 24 additions and 0 deletions

20
dep/emu/build.mk Normal file
View File

@@ -0,0 +1,20 @@
ifeq ($(OS), Windows_NT)
EMU_SRCS = \
dep/emu/fnmatch.c
EMU_OBJS = $(patsubst %.c, $(OBJDIR)/%.o, $(EMU_SRCS))
$(EMU_OBJS): CFLAGS += -Idep/emu
EMU_LIB = $(OBJDIR)/libemu.a
$(EMU_LIB): $(EMU_OBJS)
EMU_CFLAGS = -Idep/emu
EMU_LDFLAGS = $(EMU_LIB)
else
EMU_LIB =
EMU_CFLAGS =
EMU_LDFLAGS =
endif