Mercurial > forge
changeset 9660:f6d36e0c7416 octave-forge
io: using macros for Makefile
author | carandraug |
---|---|
date | Tue, 13 Mar 2012 03:01:20 +0000 |
parents | 1bc5dda26ff9 |
children | 15c4c28383ef |
files | main/io/src/Makefile |
diffstat | 1 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/main/io/src/Makefile Tue Mar 13 02:51:42 2012 +0000 +++ b/main/io/src/Makefile Tue Mar 13 03:01:20 2012 +0000 @@ -1,5 +1,7 @@ all: csvexplode.oct csv2cell.oct csvconcat.oct cell2csv.oct xmlread.oct +MKOCTFILE = mkoctfile -Wall + ifdef FLEXML # flexml is a dead project. It requires flex 2.5.4a-6 (flex-old on Debian). # Further, we have modified the resulting xmltree_read.c by hand, changing @@ -13,19 +15,19 @@ endif xmltree.o: xmltree.c xmltree.h - mkoctfile -Wall -c $< + $(MKOCTFILE) -c $< xmltree_read.o: xmltree_read.c xmltree_read.h - mkoctfile -Wall -c $< + $(MKOCTFILE) -c $< xmlread.o: xmlread.cc xmltree_read.h xmltree.h - mkoctfile -Wall -c $< + $(MKOCTFILE) -c $< xmlread.oct: xmlread.o xmltree_read.o xmltree.o - mkoctfile -Wall $^ + $(MKOCTFILE) $^ %.oct: %.cc - mkoctfile -Wall $< + $(MKOCTFILE) $< clean: rm -f *.o octave-core core *.oct *~