aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-05-26 14:31:28 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-05-26 14:31:28 +0000
commit6e277ecbbc97edc0121c5fce2ed27bf24cdda96e (patch)
treed282a657481d4b03b83e35448fceb86a308b5a43
parent30b29d5e76f9907ca4d691fd2ab8e4bc07c020da (diff)
thought I'd check in a working(?) version of this makefile before I wipe it and use externals/Makefile
svn path=/trunk/externals/hcs/hid/; revision=5137
-rw-r--r--Makefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index f368361..e919c0b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,20 @@
-TARGET=hid
+TARGET := `pwd|sed 's|.*/\(.*\)$|\1|'`
+EXTERNALS_ROOT := `pwd | sed 's|^\(/.*externals\).*|\1|'`
default:
- make -C ../../ $(TARGET)
+ make -C $(EXTERNALS_ROOT) $(TARGET)
install:
- make -C ../../ $(TARGET)_install
+ make -C $(EXTERNALS_ROOT) $(TARGET)_install
clean:
- make -C ../../ $(TARGET)_clean
-
-
+ make -C $(EXTERNALS_ROOT) $(TARGET)_clean
+#==============================================================================
+#==============================================================================
+#==============================================================================
+#==============================================================================
+#==============================================================================
# this stuff below probably works, but its not maintained anymore since I use
# externals/Makefile
@@ -50,7 +54,7 @@ ifeq ($(OS_NAME),linux)
endif
# ----------------------- Windows MinGW -----------------------
-ifeq ($(OS_NAME),win)
+ifeq ($(OS_NAME),windows)
EXTENSION = dll
CFLAGS += -mms-bitfields
LDFLAGS += -shared
@@ -70,6 +74,7 @@ ifeq ($(OS_NAME),darwin)
-lHIDUtilities $(patsubst %,-framework %,$(FRAMEWORKS))
STRIP = strip -x
hid.$(EXTENSION): input_arrays hid_utilites $(OBJ)
+.SUFFIXES: .pd_darwin
endif
all: hid.$(EXTENSION)
@@ -77,7 +82,6 @@ all: hid.$(EXTENSION)
.SUFFIXES: .$(EXTENSION)
# ----------------------- GENERAL ---------------------------------------------
-
# generic optimization
OPT_FLAGS = -O3 -ffast-math
# G4 optimization on Mac OS X