diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2004-09-23 04:10:33 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2004-09-23 04:10:33 +0000 |
commit | 59b0aae67b1e72fce38c208382ce099bb88e5644 (patch) | |
tree | f4c57c4a6a02b96e278edd15e40e16463fc49f18 /externals/grill/py/makefile.pd-darwin | |
parent | 3fb8afa21cd68ee74088aaef7dc425b24f0e37a5 (diff) |
""
svn path=/trunk/; revision=2054
Diffstat (limited to 'externals/grill/py/makefile.pd-darwin')
-rwxr-xr-x | externals/grill/py/makefile.pd-darwin | 39 |
1 files changed, 27 insertions, 12 deletions
diff --git a/externals/grill/py/makefile.pd-darwin b/externals/grill/py/makefile.pd-darwin index ab63aa97..6b73c207 100755 --- a/externals/grill/py/makefile.pd-darwin +++ b/externals/grill/py/makefile.pd-darwin @@ -12,21 +12,36 @@ CONFIG=config-pd-darwin.txt include ${CONFIG} -FLEXTLIB=${FLEXTPATH}/flext_t.a - # compiler+linker stuff INCLUDES=${PDPATH} ${FLEXTPATH} -FLAGS=-DFLEXT_SYS=2 -DFLEXT_THREADS +FLAGS=-DFLEXT_SYS=2 CFLAGS=$(UFLAGS) -Wno-long-double -Wno-unused -Wno-parentheses -Wno-switch -Wstrict-prototypes -#CFLAGS=-g LIBS=m -LDFLAGS=-bundle -bundle_loader ${PD} -framework Python -framework Carbon +FRAMEWORKS=Python Carbon +LDFLAGS=-bundle -bundle_loader ${PD} + +ifndef DEBUG +CFLAGS+=-O2 +else +CFLAGS+=-g +endif + +ifdef FLEXT_SHARED + +CFLAGS+=-dynamic -DFLEXT_SHARED +LDFLAGS+=-dynamic -L$(FLEXTPATH) +FLEXTLIB=-lflext + +else + +CFLAGS+=-DFLEXT_THREADS +FLEXTLIB=$(FLEXTPATH)/libflext_t.a + +endif # --------------------------------------------- # the rest can stay untouched # ---------------------------------------------- -NAME=py - # all the source files from the package include make-files.txt @@ -37,21 +52,21 @@ MAKEFILE=makefile.pd-darwin # default target all: $(TARGDIR) $(TARGET) -$(patsubst %,$(SRCDIR)/%,$(SRCS)): $(patsubst %,$(SRCDIR)/%,$(HDRS)) $(FLEXTLIB) $(MAKEFILE) $(CONFIG) +$(patsubst %,$(SRCDIR)/%,$(SRCS)): $(patsubst %,$(SRCDIR)/%,$(HDRS)) $(MAKEFILE) $(CONFIG) touch $@ $(TARGDIR): - mkdir $(TARGDIR) + -mkdir $(TARGDIR) $(TARGDIR)/%.o : $(SRCDIR)/%.cpp $(CXX) -c $(CFLAGS) $(FLAGS) $(patsubst %,-I%,$(INCLUDES)) $< -o $@ -$(TARGET) : $(patsubst %.cpp,$(TARGDIR)/%.o,$(SRCS)) $(FLEXTLIB) - $(CXX) $(LDFLAGS) $^ $(patsubst %,-L%,$(LIBPATH)) $(patsubst %,-l%,$(LIBS)) -o $@ +$(TARGET) : $(patsubst %.cpp,$(TARGDIR)/%.o,$(SRCS)) + $(CXX) $(LDFLAGS) $^ $(FLEXTLIB) $(patsubst %,-framework %,$(FRAMEWORKS)) $(patsubst %,-L%,$(LIBPATH)) $(patsubst %,-l%,$(LIBS)) -o $@ chmod 755 $@ $(INSTPATH): - mkdir $(INSTPATH) + -mkdir $(INSTPATH) install:: $(INSTPATH) |