aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorDavide Morelli <morellid@users.sourceforge.net>2006-01-12 09:22:35 +0000
committerDavide Morelli <morellid@users.sourceforge.net>2006-01-12 09:22:35 +0000
commit70fd0fd73aaa002d4d7e9841d8af105c4c80ddf4 (patch)
treeec40da26ff4dfe7704720da87ee6652c4be6530c /makefile
checking in the externalsvn2git-root
svn path=/trunk/externals/clr/; revision=4387
Diffstat (limited to 'makefile')
-rwxr-xr-xmakefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100755
index 0000000..5ec27fe
--- /dev/null
+++ b/makefile
@@ -0,0 +1,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=/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
+
+LINUXINCLUDE = -I../../src -I$PDPATH
+
+MONOSRC = -ID:/Davide/cygwin/tmp/build_deps/include -ID:/Davide/cygwin/tmp/build_deps/include/glib-2.0 -ID:/Davide/cygwin/tmp/build_deps/lib/glib-2.0/include -ID:/Davide/cygwin/home/Davide/mono/include
+MONOLIB = -LD:/Davide/cygwin/tmp/build_deps/lib -LD:/Davide/cygwin/home/Davide/mono/lib -lmono -lm -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
+# ld -export_dynamic $(MONOLIB) -o $*.dll $*.o -lm pd.dll
+# strip --strip-unneeded $*.pd_linux
+# rm $*.o