aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rwxr-xr-xmakefile24
1 files changed, 12 insertions, 12 deletions
diff --git a/makefile b/makefile
index 890fee8..7d99f07 100755
--- a/makefile
+++ b/makefile
@@ -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