diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2010-09-02 20:00:37 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2010-09-02 20:00:37 +0000 |
commit | 6a9822027b4ad280da877bc200e75e713869cad9 (patch) | |
tree | e0024ad7a2f2e0efc562322f0d076947f70b6834 /externals | |
parent | 931bc9d32633bd4fc1a84c4b8aa90ea944bfdd95 (diff) |
readded fixed template-based targets for comport
svn path=/trunk/; revision=13957
Diffstat (limited to 'externals')
-rw-r--r-- | externals/Makefile | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/externals/Makefile b/externals/Makefile index 63dc1b67..3e049838 100644 --- a/externals/Makefile +++ b/externals/Makefile @@ -394,33 +394,15 @@ bsaylor_clean: #------------------------------------------------------------------------------# # COMPORT -COMPORT_NAME=comport -COMPORT_SRC := $(wildcard $(externals_src)/iem/comport/comport/*.c) -COMPORT_OBJECTS := $(COMPORT_SRC:.c=.o) -$(COMPORT_OBJECTS) : %.o : %.c - $(CC) $(CFLAGS) -O2 -funroll-loops -fomit-frame-pointer -o "$*.o" -c "$*.c" - -comport: $(COMPORT_OBJECTS:.o=.$(EXTENSION)) +comport: + make -C $(externals_src)/iem/comport/comport -comport_install: comport - install -d $(DESTDIR)$(objectsdir)/$(COMPORT_NAME) - $(scripts_src)/generate-libdir-metafile.sh $(DESTDIR)$(objectsdir) $(COMPORT_NAME) \ - --author "(c) 1998-2005 Winfried Ritsch , 2006-2010 Martin Peach" \ - --description "serial objects" \ - --license "GNU LGPL 2.1" \ - --version "" - install -p $(COMPORT_SRC:.c=.$(EXTENSION)) $(DESTDIR)$(objectsdir)/$(COMPORT_NAME) - install -p $(externals_src)/iem/comport/comport/*.pd \ - $(DESTDIR)$(objectsdir)/$(COMPORT_NAME) - install -d $(DESTDIR)$(readmesdir) - install -p $(externals_src)/iem/comport/comport/README.txt \ - $(DESTDIR)$(readmesdir)/$(COMPORT_NAME).txt +comport_install: + make -C $(externals_src)/iem/comport/comport \ + DESTDIR="$(DESTDIR)" objectsdir="$(objectsdir)" install comport_clean: - -rm -f -- $(externals_src)/iem/comport/comport/*.$(EXTENSION) - -rm -f -- $(externals_src)/iem/comport/comport/*.o - -rm -f -- $(externals_src)/iem/comport/comport/*.bak - -rm -f -- $(externals_src)/iem/comport/comport/*.*~ + make -C $(externals_src)/iem/comport/comport clean #------------------------------------------------------------------------------# |