aboutsummaryrefslogtreecommitdiff
path: root/src/makefile_win
blob: 5313c2e6da448e92af4ef19454ce4feef2d69cb0 (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: iemmatrix.dll



CC = cl
LD = link

VIS_CPP_PATH = "C:\Programme\Microsoft Visual Studio\Vc98"

PD_INST_PATH = C:\Programme\pd

PD_WIN_INCLUDE_PATH = /I. /I"$(PD_INST_PATH)\src"

PD_WIN_C_FLAGS = /nologo /W3 /WX /DPD /D__WIN32__ /Ox -DPA_LITTLE_ENDIAN

PD_WIN_L_FLAGS = /nologo

PD_WIN_LIB = /NODEFAULTLIB:libc /NODEFAULTLIB:oldnames /NODEFAULTLIB:kernel /NODEFAULTLIB:uuid \
	libc.lib \
	/LIBPATH:$(PD_INST_PATH)\bin pd.lib


SRC = $(sort $(filter %.c, $(wildcard *.c)))


OBJ = $(SRC:.c=.obj)

$(OBJ): %.obj : %.c
	$(CC) $(PD_WIN_C_FLAGS) $(PD_WIN_INCLUDE_PATH) /c $*.c

iemmatrix.dll: $(OBJ)
	$(LD) $(PD_WIN_L_FLAGS) /dll /export:iemmatrix_setup \
	/out:iemmatrix.dll $(OBJ) $(PD_WIN_LIB)

clean:
	del *.obj