Update of /cvsroot/pure-data/externals/grill/flext/buildsys/mac In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29038/buildsys/mac
Added Files: gnumake-gcc-ext.inc gnumake-gcc-flext.inc gnumake-gcc.inc Removed Files: make-gcc.inc Log Message: updated make system build system for OSX simplified make system reconsidered flext::buffer:Update added object construction and destruction flags updated build system
--- NEW FILE: gnumake-gcc.inc --- ##############################################
LDFLAGS += -dynamic -Wl,-x -framework ApplicationServices -framework vecLib
##############################################
ifndef DEBUG CFLAGS += -g -D_DEBUG else CFLAGS += $(OFLAGS) -DNDEBUG LDFLAGS += -Wl,-S endif
--- NEW FILE: gnumake-gcc-ext.inc --- # build class specific settings
INCPATH += -I$(FLEXTINC) LIBPATH += -L$(FLEXTLIB) -L$(FLEXTSHLIB) LIBS += -l$(FLEXTNAME)
##############################################
CSRCS=$(patsubst %.c,$(SRCDIR)/%.c,$(filter %.c,$(SRCS))) CPPSRCS=$(patsubst %.cpp,$(SRCDIR)/%.cpp,$(filter %.cpp,$(SRCS))) COBJS=$(patsubst %.c,$(OBJPATH)/%.o,$(filter %.c,$(SRCS))) CPPOBJS=$(patsubst %.cpp,$(OBJPATH)/%.opp,$(filter %.cpp,$(SRCS)))
##############################################
# default target _build_: $(TARGET)
$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS)) touch $@
$(OBJPATH): -mkdir -p $@
$(TARGETPATH): -mkdir -p $@
$(OBJPATH)/%.opp : $(SRCDIR)/%.cpp $(CXX) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
$(OBJPATH)/%.o : $(SRCDIR)/%.c $(CC) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
$(TARGET) :: $(OBJPATH) $(TARGETPATH)
$(TARGET) :: $(COBJS) $(CPPOBJS) $(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $(COBJS) $(CPPOBJS) $(LIBS) chmod 755 $@
##############################################
_clean_: rm $(COBJS) $(CPPOBJS) $(TARGET)
##############################################
$(INSTPATH): -mkdir -p $@
_install_:: $(INSTPATH) install $(TARGET) $(INSTPATH)
--- make-gcc.inc DELETED ---
--- NEW FILE: gnumake-gcc-flext.inc --- # build class specific settings
#LDFLAGS += -dylib_install_name $(FLEXTSHLIB)
##############################################
CSRCS=$(patsubst %.c,$(SRCDIR)/%.c,$(filter %.c,$(SRCS))) CPPSRCS=$(patsubst %.cpp,$(SRCDIR)/%.cpp,$(filter %.cpp,$(SRCS))) COBJS=$(patsubst %.c,$(OBJPATH)/%.o,$(filter %.c,$(SRCS))) CPPOBJS=$(patsubst %.cpp,$(OBJPATH)/%.opp,$(filter %.cpp,$(SRCS)))
# default target _build_: $(TARGET)
$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS)) touch $@
$(OBJPATH): -mkdir -p $@
$(TARGETPATH): -mkdir -p $@
$(OBJPATH)/%.opp : $(SRCDIR)/%.cpp $(CXX) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
$(OBJPATH)/%.o : $(SRCDIR)/%.c $(CC) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
$(TARGET) :: $(OBJPATH) $(TARGETPATH)
$(TARGET) :: $(COBJS) $(CPPOBJS) ifdef SHARED $(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $(COBJS) $(CPPOBJS) $(LIBS) chmod 755 $@ else libtool -static -o $@ $(COBJS) $(CPPOBJS) endif
##############################################
_clean_: rm $(COBJS) $(CPPOBJS) $(TARGET)
##############################################
ifdef SHARED FLEXTLIBINST=$(FLEXTSHLIB) else FLEXTLIBINST=$(FLEXTLIB) endif
$(FLEXTINC): -mkdir -p $@
$(FLEXTLIBINST): -mkdir -p $@
_install_: $(FLEXTINC) $(FLEXTLIBINST) install $(TARGET) $(FLEXTLIBINST) ifndef SHARED ranlib $(FLEXTLIBINST)/$(OUTNAME).$(EXT) # have to rerun ranlib at install dir ?! endif install $(patsubst %,$(SRCDIR)/%,$(HDRS)) $(FLEXTINC)