aboutsummaryrefslogtreecommitdiff
path: root/externals/Makefile
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-05-25 17:06:37 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-05-25 17:06:37 +0000
commitce65c11025f7665903600ba78c8ca19510ab2d83 (patch)
treeaa206e251632ff7a1f3b243bedddf91ed65de783 /externals/Makefile
parentcef0c5f50106284f158cef21880b24bcdf81c8ef (diff)
finally made an 'hcs' target, I guess my grab bag is something of a lib; fixed up cred to compile in the standard, easy way
svn path=/trunk/; revision=5131
Diffstat (limited to 'externals/Makefile')
-rw-r--r--externals/Makefile54
1 files changed, 38 insertions, 16 deletions
diff --git a/externals/Makefile b/externals/Makefile
index ad5efe6b..52b8c5cb 100644
--- a/externals/Makefile
+++ b/externals/Makefile
@@ -38,7 +38,9 @@ DEST_PATHS = BUILDLAYOUT_DIR=$(BUILDLAYOUT_DIR) \
#
#==============================================================================#
-OPT_CFLAGS = -O3 -funroll-loops -fomit-frame-pointer
+DEBUG_CFLAGS = -ggdb
+
+OPT_CFLAGS = -O3 -funroll-loops -fomit-frame-pointer $(DEBUG_CFLAGS)
# this variable is to support old "win" directories, rather than "windows"
BUILDSRC_OS_NAME = $(OS_NAME)
@@ -287,24 +289,11 @@ bsaylor_clean:
# CREB
CREB_NAME=creb
# ead* are compiled separately
-CREB_OBJECTS := $(wildcard $(externals_src)/creb/modules/[a-df-z]*.c) \
-$(externals_src)/creb/modules/eblosc.c
+CREB_OBJECTS := $(wildcard $(externals_src)/creb/modules/*.c)
# haven't figured these out yet
#CREB_CXXOBJECTS := $(wildcard $(externals_src)/creb/modules++/*.cc)
-# these are built separately since they made from a number of files
-CREB_EA_OBJECTS = $(wildcard $(externals_src)/creb/modules/ea*.c)
-CREB_ENVELOPE_UTIL = $(externals_src)/creb/system/envelope_util.c
-$(CREB_OBJECTS:.c=.o):
-$(CREB_ENVELOPE_UTIL:.c=.o):
- $(CC) $(CFLAGS) -I$(externals_src)/creb/include -o $*.o -c $*.c
-
-$(patsubst %.c,%~.$(EXTENSION),$(CREB_EA_OBJECTS)): $(CREB_ENVELOPE_UTIL:.c=.o)
- $(CC) $(LDFLAGS) -o $*.$(EXTENSION) $(CREB_ENVELOPE_UTIL:.c=.o) $(LIBS)
- chmod a-x $*.$(EXTENSION)
-
-creb: $(patsubst %.c,%~.$(EXTENSION),$(CREB_EA_OBJECTS)) \
-$(CREB_OBJECTS:.c=.$(EXTENSION)) $(CREB_CXXOBJECTS:.cc=.$(EXTENSION))
+creb: $(CREB_OBJECTS:.c=.$(EXTENSION)) $(CREB_CXXOBJECTS:.cc=.$(EXTENSION))
creb_install: creb
install -d $(objectsdir)/$(CREB_NAME)
@@ -608,6 +597,39 @@ hardware_clean:
-rm -f -- $(externals_src)/hardware/*/*.*~
+#------------------------------------------------------------------------------#
+# HCS
+HCS_NAME=hcs
+HCS_OBJECTS := $(wildcard $(externals_src)/hcs/*.c)
+hcs: $(HCS_OBJECTS:.c=.$(EXTENSION))
+
+hcs_install: hcs
+ install -d $(objectsdir)/$(HCS_NAME)
+ $(scripts_src)/generate-libdir-metafile.sh $(objectsdir) $(HCS_NAME) \
+ --author "Hans-Christoph Steiner <hans@at.or.at>" \
+ --description "" \
+ --license "GNU GPL" \
+ --version ""
+ install -p $(HCS_OBJECTS:.c=.$(EXTENSION)) $(objectsdir)/$(HCS_NAME)
+ install -d $(helpdir)/$(HCS_NAME)
+ install -p $(externals_src)/hcs/help/*.pd \
+ $(helpdir)/$(HCS_NAME)
+# install -d $(manualsdir)/$(HCS_NAME)
+# install -p $(externals_src)/hcs/manual.txt \
+# $(manualsdir)/$(HCS_NAME)
+ install -p $(externals_src)/hcs/README \
+ $(readmesdir)/$(HCS_NAME).txt
+ install -d $(examplesdir)/$(HCS_NAME)
+ install -p $(externals_src)/hcs/examples/*.pd \
+ $(examplesdir)/$(HCS_NAME)
+
+hcs_clean:
+ -rm -f -- $(HCS_OBJECTS:.c=.$(EXTENSION))
+ -rm -f -- $(HCS_OBJECTS:.c=.o)
+ -rm -f -- $(externals_src)/hcs/*.bak
+ -rm -f -- $(externals_src)/hcs/*.*~
+
+
#------------------------------------------------------------------------------#
# HID