[PD-cvs] externals/grill/flext/buildsys/lnx gnumake-icc-ext.inc,NONE,1.1 gnumake-icc-flext.inc,NONE,1.1 gnumake-icc.inc,NONE,1.1 gnumake-gcc-ext.inc,1.3,1.4 gnumake-gcc-flext.inc,1.3,1.4 gnumake-gcc.inc,1.4,1.5
Thomas Grill
xovo at users.sourceforge.net
Thu Jan 13 05:59:11 CET 2005
- Previous message: [PD-cvs] externals/grill/flext/buildsys/lnx/pd config-icc.def,NONE,1.1 gnumake-icc-ext.inc,NONE,1.1 gnumake-icc-flext.inc,NONE,1.1 gnumake-icc.inc,NONE,1.1 config-gcc.def,1.4,1.5
- Next message: [PD-cvs] externals/grill/flext/buildsys/mac/pd config-gcc.def,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/pure-data/externals/grill/flext/buildsys/lnx
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4893/buildsys/lnx
Modified Files:
gnumake-gcc-ext.inc gnumake-gcc-flext.inc gnumake-gcc.inc
Added Files:
gnumake-icc-ext.inc gnumake-icc-flext.inc gnumake-icc.inc
Log Message:
various fixes to build system
fixes for build system
better templates, some minor changes
build system: added profiler mode, more fixes
added ICC/linux support
small optimizations
--- NEW FILE: gnumake-icc-flext.inc ---
# build class specific settings
##############################################
# default target
_build_: $(TARGET)
$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS))
touch $@
$(TARGETPATH):
-mkdir -p $@
$(TARGETPATH)/%.opp : $(SRCDIR)/%.cpp
icc -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
$(TARGETPATH)/%.o : $(SRCDIR)/%.c
icc -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
$(TARGET) :: $(TARGETPATH)
$(TARGET) :: $(COBJS) $(CPPOBJS)
ifdef SHARED
icc $(LDFLAGS) $(LIBPATH) -o $@ $(COBJS) $(CPPOBJS) $(LIBS)
chmod 755 $@
ifndef DEBUG
ifndef PROFILE
strip --strip-unneeded $@
endif
endif
else
$(AR) rc $@ $(COBJS) $(CPPOBJS)
endif
##############################################
_clean_:
-rm -r $(TARGETPATH)
##############################################
ifdef SHARED
FLEXTLIBINST=$(FLEXTSHLIB)
else
FLEXTLIBINST=$(FLEXTLIB)
endif
$(FLEXTINC):
-mkdir -p $@
$(FLEXTLIBINST):
-mkdir -p $@
_install_: $(FLEXTINC) $(FLEXTLIBINST)
install $(TARGET) $(FLEXTLIBINST)
install $(patsubst %,$(SRCDIR)/%,$(HDRS)) $(FLEXTINC)
Index: gnumake-gcc-ext.inc
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/lnx/gnumake-gcc-ext.inc,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** gnumake-gcc-ext.inc 10 Jan 2005 04:58:36 -0000 1.3
--- gnumake-gcc-ext.inc 13 Jan 2005 04:59:08 -0000 1.4
***************
*** 27,31 ****
--- 27,35 ----
$(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $(COBJS) $(CPPOBJS) $(LIBS)
chmod 755 $@
+ ifndef DEBUG
+ ifndef PROFILE
strip --strip-unneeded $@
+ endif
+ endif
##############################################
Index: gnumake-gcc.inc
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/lnx/gnumake-gcc.inc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** gnumake-gcc.inc 10 Jan 2005 04:58:41 -0000 1.4
--- gnumake-gcc.inc 13 Jan 2005 04:59:08 -0000 1.5
***************
*** 8,12 ****
CFLAGS += -pthread
! LDFLAGS += -pthread -shared -Wl,-x
##############################################
--- 8,12 ----
CFLAGS += -pthread
! LDFLAGS += -pthread -shared -Wl,-x
##############################################
***************
*** 14,21 ****
ifdef DEBUG
CFLAGS += -g
else
ifdef PROFILE
CFLAGS += -g -pg
! LDFLAGS += -pg
else
LDFLAGS += -Wl,-S
--- 14,22 ----
ifdef DEBUG
CFLAGS += -g
+ LDFLAGS += -g
else
ifdef PROFILE
CFLAGS += -g -pg
! LDFLAGS += -g -pg
else
LDFLAGS += -Wl,-S
--- NEW FILE: gnumake-icc.inc ---
##############################################
OBJPATH=$(OUTPATH)/$(OUTSUB)
TARGETPATH=$(OBJPATH)
TARGET=$(TARGETPATH)/$(OUTNAME).$(EXT)
##############################################
CFLAGS +=
LDFLAGS += -shared -Wl,-x
##############################################
ifdef DEBUG
CFLAGS += -g
LDFLAGS += -g
else
ifdef PROFILE
CFLAGS += -g -qp
LDFLAGS += -g -qp
else
LDFLAGS += -Wl,-S
endif
endif
##############################################
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)))
--- NEW FILE: gnumake-icc-ext.inc ---
# build class specific settings
INCPATH += -I$(FLEXTINC)
LIBPATH += -L$(FLEXTLIB) -L$(FLEXTSHLIB)
LIBS += -l$(FLEXTNAME)
##############################################
# default target
_build_: $(TARGET)
$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS))
touch $@
$(TARGETPATH):
mkdir -p $@
$(TARGETPATH)/%.opp : $(SRCDIR)/%.cpp
icc -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
$(TARGETPATH)/%.o : $(SRCDIR)/%.c
icc -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
$(TARGET):: $(TARGETPATH)
$(TARGET):: $(COBJS) $(CPPOBJS)
icc $(LDFLAGS) $(LIBPATH) -o $@ $(COBJS) $(CPPOBJS) $(LIBS)
chmod 755 $@
ifndef DEBUG
ifndef PROFILE
strip --strip-unneeded $@
endif
endif
##############################################
_clean_:
-rm -r $(TARGETPATH)
##############################################
$(INSTPATH):
-mkdir -p $@
_install_: $(INSTPATH)
install $(TARGET) $(INSTPATH)
Index: gnumake-gcc-flext.inc
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/buildsys/lnx/gnumake-gcc-flext.inc,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** gnumake-gcc-flext.inc 10 Jan 2005 04:58:41 -0000 1.3
--- gnumake-gcc-flext.inc 13 Jan 2005 04:59:08 -0000 1.4
***************
*** 24,28 ****
--- 24,32 ----
$(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $(COBJS) $(CPPOBJS) $(LIBS)
chmod 755 $@
+ ifndef DEBUG
+ ifndef PROFILE
strip --strip-unneeded $@
+ endif
+ endif
else
$(AR) rc $@ $(COBJS) $(CPPOBJS)
- Previous message: [PD-cvs] externals/grill/flext/buildsys/lnx/pd config-icc.def,NONE,1.1 gnumake-icc-ext.inc,NONE,1.1 gnumake-icc-flext.inc,NONE,1.1 gnumake-icc.inc,NONE,1.1 config-gcc.def,1.4,1.5
- Next message: [PD-cvs] externals/grill/flext/buildsys/mac/pd config-gcc.def,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Pd-cvs
mailing list