aboutsummaryrefslogtreecommitdiff
path: root/externals
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-11-19 19:38:18 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-11-19 19:38:18 +0000
commitf943241aa9d6b06af6619ccb790bce85758819e5 (patch)
tree5935137f851a7242cfa09a06ea2244360845149f /externals
parentd5c627a611f9b9801d40c3345446c789c9900c5d (diff)
first attempts at getting externals to compile with mingw
svn path=/trunk/; revision=1196
Diffstat (limited to 'externals')
-rw-r--r--externals/build/win/makefile.mingw55
1 files changed, 55 insertions, 0 deletions
diff --git a/externals/build/win/makefile.mingw b/externals/build/win/makefile.mingw
new file mode 100644
index 00000000..ce887e02
--- /dev/null
+++ b/externals/build/win/makefile.mingw
@@ -0,0 +1,55 @@
+# ----------------------- NT -----------------------
+
+
+EXTERNALS=\
+#!IF ![f exist filelist.inc del filelist.inc & for %i in (*.c) do @echo %i \>> filelist.inc]
+!INCLUDE filelist.inc
+#!ENDIF
+
+all: filelist.inc link.stamp $(EXTERNALS:.c=.dll)
+
+.SUFFIXES: .dll
+
+PDNTCFLAGS = /W3 /WX /DNT /DPD /nologo
+VC="C:\Program Files\Microsoft Visual Studio\Vc98"
+SRCPATH=..\src
+PDPATH=..\..\..\pd
+
+PDNTINCLUDE = /I. /I.. /I..\..\..\pd\src /I$(VC)\include /I..\..\creb\include
+
+PDNTLDIR = $(VC)\lib
+PDNTLIB = $(PDNTLDIR)\libc.lib \
+ $(PDNTLDIR)\oldnames.lib \
+ $(PDNTLDIR)\kernel32.lib \
+ $(PDNTLDIR)\uuid.lib \
+ $(PDNTLDIR)\ws2_32.lib \
+ $(PDPATH)\bin\pthreadVC.lib \
+ $(PDPATH)\bin\pd.lib
+
+.c.dll:
+ cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c $*.c
+ link /dll /export:$(*:~=_tilde)_setup $(*).obj $(PDNTLIB)
+ del $*.obj $*.lib $*.exp
+
+filelist.inc:
+ if exist filelist.inc del filelist.inc
+# for %i in ($(SRCPATH)\*.c) do @echo %~ni%~xi \>> filelist.inc
+ for %i in ($(SRCPATH)\*.c) do @echo %~ni%~xi \>> filelist.inc
+
+transfer:
+ copy $(SRCPATH)\*.c .
+
+link.stamp: filelist.inc
+ copy $(SRCPATH)\*.c .
+ copy /y nul link.stamp
+ nmake
+
+clean:
+# don't delete filelist.inc at the moment, as some externals can't be compiled
+# on win32
+ -del link.stamp
+ -del *.c
+ -del *.obj
+ -del *.lib
+ -del *.exp
+ -del *.dll