aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: 7d99f07749e8206a570a8de0eb6be870148686c9 (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
current: cygwin

clean: ; rm -f *.dll *.o


cygwin: clr.dll	

.SUFFIXES: .dll


# where are the PD header files?
# leave it blank if it is a system directory (like /usr/local/include), 
# 	since gcc 3.2 complains about it

PDPATH=/cygdrive/c/data/pd/pd-cvs
MONOPATH=/cygdrive/c/programme/prog/mono


CFLAGS = -DPD -O2 -mno-cygwin

PDINC= -I$(PDPATH)/src
PDLIB= $(PDPATH)/bin/pd.dll

MONOINC = -I$(MONOPATH)/include -I$(MONOPATH)/include/glib-2.0 -I$(MONOPATH)/lib/glib-2.0/include
MONOLIB = -L$(MONOPATH)/lib -lmono.dll -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl -liconv

.cpp.dll:
	g++ $(CFLAGS) $(PDINC) $(MONOINC) -o $*.o -c $*.cpp
	g++ -export_dynamic  -shared -mno-cygwin $(PDLIB) $(MONOLIB) -o $*.dll $*.o -lm
#	ld -export_dynamic $(MONOLIB) -o $*.dll $*.o -lm pd.dll
#	strip --strip-unneeded $*.pd_linux
#	rm $*.o