aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-04-07 14:32:29 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-04-07 14:32:29 +0000
commit1baf1d957e195290cfd59089767ca63a547a9917 (patch)
tree38a48f9bffeb97d2f69934447be073a1728bf779 /makefile
This commit was generated by cvs2svn to compensate for changes in r1560,svn2git-root
which included commits to RCS files with non-trunk default branches. svn path=/trunk/externals/mjlib/; revision=1561
Diffstat (limited to 'makefile')
-rw-r--r--makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..352dd7d
--- /dev/null
+++ b/makefile
@@ -0,0 +1,37 @@
+all: mjLib
+
+VC = "C:\Program Files\Microsoft Visual Studio .NET\Vc7"
+INCLUDE = -I. -I..\src \
+-I..\Tcl\include -I$(VC)\include -I"C:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include"
+
+LDIR = $(VC)\lib
+LDIR2 = "C:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\lib"
+
+LIB = /NODEFAULTLIB:libc /NODEFAULTLIB:oldnames /NODEFAULTLIB:kernel \
+ /NODEFAULTLIB:uuid \
+ $(LDIR)\libc.lib $(LDIR)\oldnames.lib $(LDIR)\kernel32.lib \
+ $(LDIR2)\wsock32.lib $(LDIR2)\winmm.lib \
+ ..\bin\pd.lib
+GLIB = $(LIB) ..\lib\tcl83.lib ..\lib\tk83.lib
+CFLAGS = /nologo /W3 /WX /DNT /DPD /Ox /Zi /DVERSION=\"1\"
+LFLAGS = /nologo
+
+SRC = pin~.c mjLib.c metroplus.c monorythm.c prob.c about.c synapseA~.c convolve~.c n2m.c morse.c
+
+OBJ = $(SRC:.c=.obj)
+
+.c.obj:
+ cl /c $(CFLAGS) $(INCLUDE) $*.c
+
+
+mjLib: ..\mjLib\mjLib.dll
+
+..\mjLib\mjLib.dll ..\mjLib\mjLib.lib: $(OBJ)
+ link $(LFLAGS) /debug /dll /export:mjLib_setup \
+ /out:..\mjLib\mjLib.dll $(OBJ) $(LIB)
+
+
+# the following should also clean up "bin" but it doesn't because "bin" holds
+# precious stuff from elsewhere.
+clean:
+ del *.obj