~ubuntu-branches/ubuntu/wily/octave-miscellaneous/wily

« back to all changes in this revision

Viewing changes to src/Makefile

  • Committer: Package Import Robot
  • Author(s): Sébastien Villemot, Rafael Laboissiere, Sébastien Villemot
  • Date: 2012-10-17 13:40:55 UTC
  • mfrom: (1.2.1) (12 sid)
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: package-import@ubuntu.com-20121017134055-vatltexghy77fnv7
Tags: 1.2.0-1
[ Rafael Laboissiere ]
* Imported Upstream version 1.2.0
* Bump Standards-Version to 3.9.4 (no changes needed)
* Refresh for new upstream release
* Use Sébastien Villemot's @debian.org email address
* Remove obsolete DM-Upload-Allowed flag
* Add patch autoload-yes.patch
* Add copyright info for file lauchli.m (included in a Debian patch)
* Add patch partcnt-test-succeeds.patch
* Build-depends on octave-pkg-dev >= 1.0.3

[ Sébastien Villemot ]
* debian/control: fix versioned dependency on debhelper
* Add lintian override for false positive on hardening (fortify)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
sinclude Makeconf
2
 
 
3
 
ifdef HAVE_LIB_TERMCAP
4
 
        TERM_LIB=-ltermcap
5
 
endif
6
 
 
7
 
ifdef HAVE_FORK
8
 
        LISTEN=listen.oct
9
 
else
10
 
        LISTEN=
11
 
endif
12
 
 
13
 
TARGETS=waitbar.oct $(LISTEN) xmlread.oct  hex2num.cc \
14
 
        csvexplode.oct csv2cell.oct csvconcat.oct cell2csv.oct
15
 
 
16
 
all:    $(TARGETS)
17
 
 
18
 
waitbar.oct:    waitbar.cc
19
 
        $(MKOCTFILE) $(MISCDEFS) waitbar.cc $(TERM_LIB)
20
 
 
21
 
listen.oct: listen.o listencanfork.o stringmatch.o
22
 
        $(MKOCTFILE) listen.o listencanfork.o stringmatch.o
23
 
 
24
 
listen.o: listen.cc
25
 
        $(MKOCTFILE) -c $(MISCDEFS) listen.cc
26
 
 
27
 
listencanfork.o: listencanfork.c
28
 
        $(MKOCTFILE) -c listencanfork.c
29
 
 
30
 
stringmatch.o: stringmatch.c
31
 
        $(MKOCTFILE) -c stringmatch.c
32
 
 
33
 
xmltree.o: xmltree.c xmltree.h
34
 
        $(MKOCTFILE) $(MISCDEFS) -c $<
35
 
 
36
 
ifdef FLEXML
37
 
# flexml is a dead project.  It requires flex 2.5.4a-6  (flex-old on Debian).
38
 
# Further, we have modified the resulting xmltree_read.c by hand, changing
39
 
# all occurrences of yy to xml_ and YY to XML_. Some other changes have be
40
 
# mode so the ouput of flexml won't be as correct as the actual committed C
41
 
# file
42
 
xmltree_read.l: xmltree_read.act octave.dtd
43
 
         $(FLEXML) -A -a $^
44
 
xmltree_read.c: xmltree_read.l
45
 
        $(FLEX) -B -Pxml_ -o$@ $<
46
 
endif
47
 
 
48
 
xmltree_read.o: xmltree_read.c xmltree_read.h
49
 
        $(MKOCTFILE) $(MISCDEFS) -c $<
50
 
 
51
 
xmlread.o: xmlread.cc xmltree_read.h xmltree.h
52
 
        $(MKOCTFILE) $(MISCDEFS) -c $<
53
 
 
54
 
xmlread.oct: xmlread.o xmltree_read.o xmltree.o
55
 
        $(MKOCTFILE) $^
56
 
 
57
 
csvexplode.oct: csvexplode.cc
58
 
        $(MKOCTFILE) $(MISCDEFS) $<
59
 
 
60
 
csv2cell.oct: csv2cell.cc
61
 
        $(MKOCTFILE) $(MISCDEFS) $<
62
 
 
63
 
csvconcat.oct: csvconcat.cc
64
 
        $(MKOCTFILE) $(MISCDEFS) $<
65
 
 
66
 
cell2csv.oct: cell2csv.cc
67
 
        $(MKOCTFILE) $(MISCDEFS) $<
68
 
 
69
 
hex2num.oct: hex2num.cc
70
 
        $(MKOCTFILE) $(MISCDEFS) $<
71
 
 
72
 
clean: ; -$(RM) *.o octave-core core *.oct *~ $(t2.1.58)
 
1
MKOCTFILE = mkoctfile -Wall
 
2
 
 
3
PROGS = $(patsubst %.cc,%.oct,$(wildcard *.cc))
 
4
 
 
5
all: $(PROGS)
 
6
 
 
7
%.oct: %.cc
 
8
        $(MKOCTFILE) $<
 
9
 
 
10
clean:
 
11
        rm -f *.o octave-core core *.oct *~