Browse code

use .PHONY instead of FORCE

Adam Higerd authored on 2021/02/11 21:08:46
Showing 1 changed files
... ...
@@ -6,3 +6,5 @@
6 6
 
7 7
 clean:
8 8
 	rm -f ../in_snsf.dll ../in_snsf.exp ../in_snsf.lib *.obj snes9x/*.obj snes9x/*/*.obj
9
+
10
+.PHONY: clean
Browse code

update for C++17 compliance, update to latest 2sf, add WINE cross-compile makefiles

Adam Higerd authored on 2021/02/11 15:36:17
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,8 @@
1
+../in_snsf.dll: $(patsubst %.cpp, %.obj, $(wildcard snes9x/*.cpp snes9x/*/*.cpp *.cpp)) ../in_xsf_framework.lib
2
+	$(WINE) link.exe /nologo /dll /machine:x86 user32.lib libucrt.lib libvcruntime.lib libcmt.lib libcpmt.lib /out:$@ $^
3
+
4
+%.obj: %.cpp $(wildcard snes9x/*.h ../in_xsf_framework/*.h) GNUmakefile
5
+	$(WINE) cl.exe /nologo /std:c++latest /MT /DUNICODE /D_UNICODE /DNDEBUG /O2 /EHsc /I ../in_xsf_framework /I ../in_xsf_framework/zlib /I snes9x /c /Fo$@ $<
6
+
7
+clean:
8
+	rm -f ../in_snsf.dll ../in_snsf.exp ../in_snsf.lib *.obj snes9x/*.obj snes9x/*/*.obj