diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2005-11-15 02:42:34 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2005-11-15 02:42:34 +0000 |
commit | 440e3d9c5d549f55c74fe4242d7217c95886ec97 (patch) | |
tree | 6e2919a3b93ca7f61c7f78056cf73d04d986533c /externals/build/win/makefile.nmake | |
parent | 699bd1f1bb443d3043193d5649ffb1279d9fe0b8 (diff) |
got basically everything building with MinGW, now got to get things linking dynamically instead of statically
svn path=/trunk/; revision=3907
Diffstat (limited to 'externals/build/win/makefile.nmake')
-rwxr-xr-x | externals/build/win/makefile.nmake | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/externals/build/win/makefile.nmake b/externals/build/win/makefile.nmake new file mode 100755 index 00000000..32a44852 --- /dev/null +++ b/externals/build/win/makefile.nmake @@ -0,0 +1,52 @@ +# ----------------------- 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 + +PDNTINCLUDE = /I. /I.. /I..\..\..\pd\src /I$(VC)\include + +PDNTLDIR = $(VC)\lib +PDNTLIB = $(PDNTLDIR)\libc.lib \ + $(PDNTLDIR)\oldnames.lib \ + $(PDNTLDIR)\kernel32.lib \ + $(PDNTLDIR)\wsock32.lib \ + ..\..\..\pd\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 |