From 92ac7de6585e64006db631d6c39d4a7ef00f4776 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Thu, 26 Jan 2017 22:10:24 +0900 Subject: refactor Makefile and add msvc --- win32/msvc/GNUmakefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 win32/msvc/GNUmakefile (limited to 'win32/msvc/GNUmakefile') diff --git a/win32/msvc/GNUmakefile b/win32/msvc/GNUmakefile new file mode 100644 index 0000000..734326c --- /dev/null +++ b/win32/msvc/GNUmakefile @@ -0,0 +1,30 @@ +vpath %.c ../ +vpath %.c ../../fmdriver +vpath %.c ../../libopna +vpath %.c ../../fmdsp +vpath %.rc .. + +include ../fmplayer.mak + +OBJS=$(addsuffix .obj,$(OBJBASE)) $(addsuffix .res,$(RESBASE)) +CC=cl /nologo +RC=rc /nologo +CFLAGS=/W2 /Os /Oi /MT /I..\.. \ + $(addprefix /D,$(DEFINES)) +LIBS=$(addsuffix .lib,$(LIBBASE)) \ + /link /SUBSYSTEM:WINDOWS + +$(TARGET): $(OBJS) + @echo CCLD $@ + @$(CC) $(LDFLAGS) /Fe$@ $(OBJS) $(LIBS) + +%.obj: %.c + @echo CC $@ + @$(CC) $(CFLAGS) /c $< /Fo$@ + +%.res: %.rc $(ICON) + @echo RC $@ + @$(RC) /fo$@ $< + +clean: + -del $(TARGET) $(OBJS) -- cgit v1.2.3