aboutsummaryrefslogtreecommitdiff
path: root/externals/Makefile
diff options
context:
space:
mode:
authorMartin Peach <mrpeach@users.sourceforge.net>2010-09-02 19:43:17 +0000
committerMartin Peach <mrpeach@users.sourceforge.net>2010-09-02 19:43:17 +0000
commit931bc9d32633bd4fc1a84c4b8aa90ea944bfdd95 (patch)
tree7c8d87485525c6d624966ed909809abd0fe40138 /externals/Makefile
parent7d6affca746f49f5ffb2818b8a9ccf9d91388e8f (diff)
Get comport to actually compile and be placed into comport directory. This doesn't include birds. Not sure if this is correct...
svn path=/trunk/; revision=13956
Diffstat (limited to 'externals/Makefile')
-rw-r--r--externals/Makefile29
1 files changed, 24 insertions, 5 deletions
diff --git a/externals/Makefile b/externals/Makefile
index 93648773..63dc1b67 100644
--- a/externals/Makefile
+++ b/externals/Makefile
@@ -394,14 +394,33 @@ bsaylor_clean:
#------------------------------------------------------------------------------#
# COMPORT
-comport:
- make -C $(externals_src)/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_install:
- make -C $(externals_src)/comport DESTDIR="$(DESTDIR)" objectsdir="$(objectsdir)" install
+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_clean:
- make -C $(externals_src)/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/*.*~
#------------------------------------------------------------------------------#