aboutsummaryrefslogtreecommitdiff
path: root/win32/msvc
diff options
context:
space:
mode:
Diffstat (limited to 'win32/msvc')
-rw-r--r--win32/msvc/.gitignore2
-rw-r--r--win32/msvc/GNUmakefile30
2 files changed, 32 insertions, 0 deletions
diff --git a/win32/msvc/.gitignore b/win32/msvc/.gitignore
new file mode 100644
index 0000000..a1903dc
--- /dev/null
+++ b/win32/msvc/.gitignore
@@ -0,0 +1,2 @@
+*.obj
+*.res
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)