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_2sf.dll ../in_2sf.exp ../in_2sf.lib *.obj desmume/*.obj desmume/*/*.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_2sf.dll: $(patsubst %.cpp, %.obj, $(wildcard desmume/*.cpp desmume/*/*.cpp spu/*.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 desmume/*.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 spu /I desmume /c /Fo$@ $<
6
+
7
+clean:
8
+	rm -f ../in_2sf.dll ../in_2sf.exp ../in_2sf.lib *.obj desmume/*.obj desmume/*/*.obj