diff options
Diffstat (limited to 'makefile')
-rwxr-xr-x | makefile | 32 |
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
|