diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2006-03-09 17:27:37 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2006-03-09 17:27:37 +0000 |
commit | 2bd3c408f06b21c621c9471c45ef8be0b1487892 (patch) | |
tree | bc2331968ec5210e0d4f31694fba069cfce51d0e /makefile | |
parent | 450b54a7c21f1e7fa98249fe6b3ac4c98966f163 (diff) |
fixes for mono object passing
svn path=/trunk/externals/clr/; revision=4669
Diffstat (limited to 'makefile')
-rwxr-xr-x | makefile | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -11,22 +11,22 @@ cygwin: clr.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=/home/Davide -LINUXCFLAGS = -DPD -O2 -mno-cygwin
-#LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer \
-# -Wall -W -Wshadow -Wstrict-prototypes -Werror \
-# -Wno-unused -Wno-parentheses -Wno-switch
+PDPATH=/cygdrive/c/data/pd/pd-cvs +MONOPATH=/cygdrive/c/programme/prog/mono + + +CFLAGS = -DPD -O2 -mno-cygwin
-LINUXINCLUDE = -I../../src -I$PDPATH
+PDINC= -I$(PDPATH)/src
+PDLIB= $(PDPATH)/bin/pd.dll -MONOSRC = -IC:/cygwin/tmp/build_deps/include -IC:/cygwin/tmp/build_deps/include/glib-2.0 -IC:/cygwin/tmp/build_deps/lib/glib-2.0/include -IC:/cygwin/home/Davide/mono/include
-MONOLIB = -LC:/cygwin/tmp/build_deps/lib -LC:/cygwin/home/Davide/mono/lib -lmono -lm -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl -liconv
+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
-.c.dll:
-# gcc $(LINUXCFLAGS) $(LINUXINCLUDE) `pkg-config --cflags --libs mono` -lm -ID:/Davide/cygwin/home/Davide/mono/include -LD:/Davide/cygwin/home/Davide/mono/lib $*.c
- gcc $(LINUXCFLAGS) $(LINUXINCLUDE) $(MONOSRC) -o $*.o -c $*.c
- gcc -export_dynamic -shared -mno-cygwin $(MONOLIB) -o $*.dll $*.o -lm pd.dll libmono.dll.a
+.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
|