diff options
Diffstat (limited to 'win32/msvc/GNUmakefile')
-rw-r--r-- | win32/msvc/GNUmakefile | 30 |
1 files changed, 30 insertions, 0 deletions
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) |