aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: 352dd7d008f44f86dfeae97c194faf713968f20b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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