aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/buildsys/lnx
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2004-12-20 05:06:19 +0000
committerThomas Grill <xovo@users.sourceforge.net>2004-12-20 05:06:19 +0000
commit6dacabe813f4ccab33669b5dd3e3b5f61be500af (patch)
tree81abcc117357483b0a0dc0a1a7ba5b118964775f /externals/grill/flext/buildsys/lnx
parent5370cdab3db6ddfa60fef41ca22756284fa700dd (diff)
simplified make system
updated make system for BCC updated make system updated build system svn path=/trunk/; revision=2416
Diffstat (limited to 'externals/grill/flext/buildsys/lnx')
-rw-r--r--externals/grill/flext/buildsys/lnx/make-gcc.inc68
-rw-r--r--externals/grill/flext/buildsys/lnx/pd/config-gcc.def15
-rw-r--r--externals/grill/flext/buildsys/lnx/pd/make-gcc.inc10
3 files changed, 93 insertions, 0 deletions
diff --git a/externals/grill/flext/buildsys/lnx/make-gcc.inc b/externals/grill/flext/buildsys/lnx/make-gcc.inc
new file mode 100644
index 00000000..5e22a236
--- /dev/null
+++ b/externals/grill/flext/buildsys/lnx/make-gcc.inc
@@ -0,0 +1,68 @@
+LDFLAGS += -shared -Wl,-x
+
+ifdef DEBUG
+CFLAGS += -g -D_DEBUG
+else
+CFLAGS += $(OFLAGS) -DNDEBUG
+LDFLAGS += -Wl,-S
+endif
+
+##############################################
+
+INCPATH += -I$(FLEXTPATH)
+LIBPATH += -L$(FLEXTPATH)
+
+ifdef SHARED
+# --- shared ---
+DEFS += -DFLEXT_SHARED
+
+else
+ifdef THREADED
+# --- static multi-threaded ---
+DEFS += -DFLEXT_THREADS
+
+else
+# --- static single-threaded ---
+
+endif
+endif
+
+##############################################
+
+TARGET=$(OUTPATH)/$(NAME).$(EXT)
+
+CSRCS=$(patsubst %.c,$(SRCDIR)/%.c,$(filter %.c,$(SRCS)))
+CPPSRCS=$(patsubst %.cpp,$(SRCDIR)/%.cpp,$(filter %.cpp,$(SRCS)))
+COBJS=$(patsubst %.c,$(OUTPATH)/%.o,$(filter %.c,$(SRCS)))
+CPPOBJS=$(patsubst %.cpp,$(OUTPATH)/%.opp,$(filter %.cpp,$(SRCS)))
+
+# default target
+all: $(OUTPATH) $(TARGET)
+
+$(CSRCS) $(CPPSRCS): $(patsubst %,$(SRCDIR)/%,$(HDRS))
+ touch $@
+
+$(OUTPATH):
+ mkdir $(OUTPATH)
+
+$(OUTPATH)/%.opp : $(SRCDIR)/%.cpp
+ $(CXX) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
+
+$(OUTPATH)/%.o : $(SRCDIR)/%.c
+ $(CC) -c $(CFLAGS) $(DEFS) $(INCPATH) $< -o $@
+
+$(TARGET) : $(COBJS) $(CPPOBJS)
+ $(CXX) $(LDFLAGS) $(LIBPATH) -o $@ $^ $(LIBS)
+ chmod 755 $@
+
+$(INSTPATH):
+ mkdir $(INSTPATH)
+
+install:: $(INSTPATH)
+
+install:: $(TARGET)
+ install $^ $(INSTPATH)
+
+.PHONY: clean
+clean:
+ $(RM) $(COBJS) $(CPPOBJS) $(TARGET)
diff --git a/externals/grill/flext/buildsys/lnx/pd/config-gcc.def b/externals/grill/flext/buildsys/lnx/pd/config-gcc.def
new file mode 100644
index 00000000..e60e92a4
--- /dev/null
+++ b/externals/grill/flext/buildsys/lnx/pd/config-gcc.def
@@ -0,0 +1,15 @@
+# where is the PD source package?
+PDPATH=/usr/local/src/pd-0.38-0test10
+
+# where should the external be installed?
+INSTPATH=/usr/local/lib/pd/extra
+
+# where do the flext headers and libraries reside?
+FLEXTPATH=/usr/local/lib/pd/flext
+
+# where should the external be built?
+OUTPATH=pd-linux
+
+# user defined compiler flags
+# (check if they match your system!)
+OFLAGS=-O2 -march=pentium4 -msse
diff --git a/externals/grill/flext/buildsys/lnx/pd/make-gcc.inc b/externals/grill/flext/buildsys/lnx/pd/make-gcc.inc
new file mode 100644
index 00000000..3ae01ad0
--- /dev/null
+++ b/externals/grill/flext/buildsys/lnx/pd/make-gcc.inc
@@ -0,0 +1,10 @@
+DEFS += -DFLEXT_SYS=2
+
+INCPATH += -I$(PDPATH)/src
+LIBPATH += -L$(PDPATH)/bin
+
+LDFLAGS +=
+
+LIBS +=
+
+EXT=pd_linux