aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-06-05 04:50:22 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-06-05 04:50:22 +0000
commite25d5704471cb7daef1dd15513e136c2acde7453 (patch)
tree070a2a1cc1e25171624da7261ecc82f45909e22c
parent8f56e012ee69b00e913866eddbdcdb6e912e3a50 (diff)
a stab at making a target to build a single ext13.pd_linux
svn path=/trunk/externals/ext13/; revision=11681
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4ccaa17..3ae8f5b 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
# source files to the SOURCES variable. For objects that only build on
# certain platforms, add those to the SOURCES line for the right platforms.
-SOURCES = catch13~.c ext13.c filesize.c ftos.c kalashnikov.c mandelbrot~.c mandelbrot.c messages.c openpatch.c ossmixer.c piperead~.c pipewrite~.c receive13~.c receive13.c scramble~.c send13~.c send13.c sfread.c sfwrite13~.c streamin13~.c streamout13~.c strippath.c throw13~.c wavinfo.c
+SOURCES = catch13~.c filesize.c ftos.c kalashnikov.c mandelbrot~.c mandelbrot.c messages.c openpatch.c ossmixer.c piperead~.c pipewrite~.c receive13~.c receive13.c scramble~.c send13~.c send13.c sfread.c sfwrite13~.c streamin13~.c streamout13~.c strippath.c throw13~.c wavinfo.c
LIBRARY_NAME = $(shell basename $(PWD))
@@ -51,6 +51,12 @@ CFLAGS += $(OPT_CFLAGS)
all: $(SOURCES:.c=.$(EXTENSION))
+$(LIBRARY_NAME): $(SOURCES:.c=.o) $(LIBRARY_NAME).o
+ $(CC) $(LDFLAGS) -o $(LIBRARY_NAME).$(EXTENSION) $(SOURCES:.c=.o) $(LIBRARY_NAME).o $(LIBS)
+ chmod a-x $(LIBRARY_NAME).$(EXTENSION)
+ $(STRIP) $(LIBRARY_NAME).$(EXTENSION)
+ rm -f -- $*.o
+
%.o: %.c
$(CC) $(CFLAGS) -o "$*.o" -c "$*.c"