Line | |
---|
1 | |
---|
2 | bindir = @bindir@ |
---|
3 | datadir = @datadir@ |
---|
4 | datarootdir = @datarootdir@ |
---|
5 | exec_prefix = @exec_prefix@ |
---|
6 | includedir = @includedir@ |
---|
7 | libdir = @libdir@ |
---|
8 | mandir = @mandir@ |
---|
9 | prefix = @prefix@ |
---|
10 | srcdir = @srcdir@ |
---|
11 | |
---|
12 | INSTALL = @INSTALL@ |
---|
13 | MKDIR_P = @MKDIR_P@ |
---|
14 | |
---|
15 | CC = @CC@ |
---|
16 | CFLAGS = @CFLAGS@ |
---|
17 | CXX = @CXX@ |
---|
18 | CXXFLAGS = @CFLAGS@ |
---|
19 | DEFINES = -g -Wall |
---|
20 | INCLUDES = -I$(srcdir)/../../src/core \ |
---|
21 | -I$(includedir) |
---|
22 | LIBS = \ |
---|
23 | -L../../src/core -lrappture \ |
---|
24 | -L$(libdir) -lexpat -lz |
---|
25 | VPATH = $(srcdir) |
---|
26 | |
---|
27 | CXX_SWITCHES = $(CXXFLAGS) $(INCLUDES) $(DEFINES) |
---|
28 | CC_SWITCHES = $(CFLAGS) $(INCLUDES) $(DEFINES) |
---|
29 | |
---|
30 | FILES = \ |
---|
31 | $(srcdir)/README \ |
---|
32 | $(srcdir)/compress.c \ |
---|
33 | $(srcdir)/compress.cc \ |
---|
34 | $(srcdir)/output.dx \ |
---|
35 | $(srcdir)/plot.cc \ |
---|
36 | $(srcdir)/plotc.c \ |
---|
37 | $(srcdir)/tool.xml \ |
---|
38 | $(srcdir)/tool2.xml \ |
---|
39 | Makefile |
---|
40 | |
---|
41 | destdir = $(prefix)/examples/c-example |
---|
42 | |
---|
43 | |
---|
44 | PROGS = \ |
---|
45 | compress \ |
---|
46 | compressc \ |
---|
47 | plot \ |
---|
48 | plotc \ |
---|
49 | |
---|
50 | all: $(PROGS) |
---|
51 | |
---|
52 | compress: $(srcdir)/compress.cc |
---|
53 | $(CXX) $(CXX_SWITCHES) -o $@ $< $(LIBS) |
---|
54 | compressc: $(srcdir)/compress.c |
---|
55 | $(CC) $(CC_SWITCHES) -o $@ $< $(LIBS) |
---|
56 | plot: $(srcdir)/plot.cc |
---|
57 | $(CXX) $(CXX_SWITCHES) -o $@ $< $(LIBS) |
---|
58 | plotc: $(srcdir)/plotc.c |
---|
59 | $(CC) $(CC_SWITCHES) -o $@ $< $(LIBS) |
---|
60 | |
---|
61 | install: |
---|
62 | $(MKDIR_P) $(destdir) |
---|
63 | for i in $(FILES) ; do \ |
---|
64 | $(INSTALL) -m 444 $$i $(destdir) ; \ |
---|
65 | done |
---|
66 | for i in $(PROGS) ; do \ |
---|
67 | $(INSTALL) -m 555 $$i $(destdir) ; \ |
---|
68 | done |
---|
69 | |
---|
70 | clean: |
---|
71 | $(RM) $(PROGS) run*.xml |
---|
72 | |
---|
73 | distclean: clean |
---|
74 | $(RM) Makefile *~ |
---|
Note: See
TracBrowser
for help on using the repository browser.