aboutsummaryrefslogtreecommitdiff
path: root/composer
diff options
context:
space:
mode:
authormescalinum <mescalinum@users.sourceforge.net>2009-10-02 15:31:42 +0000
committermescalinum <mescalinum@users.sourceforge.net>2009-10-02 15:31:42 +0000
commitb76b780729c13ab14c6156d36305ed3cbaafdb8a (patch)
tree89e279b997e6e457923a3e0a7c45d9aa102ab0a9 /composer
parent75078c36caa21049a0cf1b1f3c7dc405edc8e5f8 (diff)
readd pd_linux/pd_darwin/... target
svn path=/trunk/externals/ffext/; revision=12510
Diffstat (limited to 'composer')
-rw-r--r--composer/Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/composer/Makefile b/composer/Makefile
index c2d5e73..473a7ca 100644
--- a/composer/Makefile
+++ b/composer/Makefile
@@ -10,18 +10,18 @@ else
CFLAGS += -O0 -g -ggdb -DDEBUG
endif
ifeq ($(OS),Linux)
- PDSUF = .pd_linux
+ PDSUF = pd_linux
PDBUNDLEFLAGS = -shared -rdynamic
LDSOFLAGS = -lm
endif
ifeq ($(OS),Darwin)
- PDSUF = .pd_darwin
+ PDSUF = pd_darwin
INCLUDES = -I/Library/Frameworks/Tcl.framework/Headers
PDBUNDLEFLAGS = -bundle -flat_namespace -undefined dynamic_lookup
LDSOFLAGS = -lm
endif
ifeq (MINGW,$(findstring MINGW,$(UNAME)))
- PDSUF = .dll
+ PDSUF = dll
PDBUNDLEFLAGS = -shared
LDSOFLAGS = -lm
endif
@@ -34,13 +34,15 @@ CFLAGS += -fPIC
CFLAGS += -DPDSUF=\"$(PDSUF)\"
LDSHARED = $(CXX) $(PDBUNDLEFLAGS)
-all: autogen_sources $(LIBNAME)$(PDSUF)
+all: autogen_sources $(LIBNAME).$(PDSUF)
@echo '-----------------------------------------------------------------------------'
- @echo ' $(LIBNAME)$(PDSUF) ('`test $(DEBUG) -eq 1 && echo debug || echo release`' build) '\
- '[size: '`ls -gGh $(LIBNAME)$(PDSUF) | cut -d " " -f 3`']'
+ @echo ' $(LIBNAME).$(PDSUF) ('`test $(DEBUG) -eq 1 && echo debug || echo release`' build) '\
+ '[size: '`ls -gGh $(LIBNAME).$(PDSUF) | cut -d " " -f 3`']'
-clean::
- rm -f $(LIBNAME)$(PDSUF)
+$(PDSUF): all
+
+clean:
+ rm -f $(LIBNAME).$(PDSUF)
rm -f *.o *~
rm -f $(AUTOGENERATED_SOURCES)
rm -f editor_tk.cpp
@@ -60,8 +62,8 @@ PdClasses.o: PdClasses.cpp PdClasses.hpp
.cpp.o: Makefile
$(CXX) $(CFLAGS) $(INCLUDES) -xc++ -c $<
-$(LIBNAME)$(PDSUF): Makefile $(OBJS)
- $(LDSHARED) $(LDSOFLAGS) $(CFLAGS) -xnone $(OBJS) -o $(LIBNAME)$(PDSUF)
+$(LIBNAME).$(PDSUF): Makefile $(OBJS)
+ $(LDSHARED) $(LDSOFLAGS) $(CFLAGS) -xnone $(OBJS) -o $(LIBNAME).$(PDSUF)
editor_tk.cpp: editor.tk
@echo "Generating $@..."