From 4e7353f45954a8a5d9aaa3dd40eed3f9f62c2062 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Fri, 10 Mar 2006 01:01:20 +0000 Subject: small cleanups svn path=/trunk/externals/clr/; revision=4676 --- makefile | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index 7d99f07..12f458e 100755 --- a/makefile +++ b/makefile @@ -2,12 +2,10 @@ 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 @@ -15,18 +13,16 @@ cygwin: clr.dll PDPATH=/cygdrive/c/data/pd/pd-cvs MONOPATH=/cygdrive/c/programme/prog/mono +CFLAGS = -DPD -mno-cygwin +CFLAGS += -O2 +#CFLAGS += -g -CFLAGS = -DPD -O2 -mno-cygwin - -PDINC= -I$(PDPATH)/src +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 + +MONOINC = -I$(MONOPATH)/include -I$(MONOPATH)/include/glib-2.0 -I$(MONOPATH)/lib/glib-2.0/include +MONOLIB = -L$(MONOPATH)/lib -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl -liconv -lmono + +.cpp.dll: + g++ $(CFLAGS) $(PDINC) $(MONOINC) -o $*.o -c $*.cpp + g++ -export_dynamic -shared -mno-cygwin $(PDLIB) -o $*.dll $*.o $(MONOLIB) -lm -- cgit v1.2.1