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../../../src/core \ |
---|
21 | -I../../../src/objects \ |
---|
22 | -I$(srcdir)/../../../src/core \ |
---|
23 | -I$(srcdir)/../../../src/objects \ |
---|
24 | -I$(includedir) |
---|
25 | LIBS = \ |
---|
26 | -L../../../src/core -lrappture \ |
---|
27 | -L../../../src/objects -lRpObjects\ |
---|
28 | -L$(libdir) -lexpat -lz -lm |
---|
29 | VPATH = $(srcdir) |
---|
30 | |
---|
31 | CXX_SWITCHES = $(CXXFLAGS) $(INCLUDES) $(DEFINES) |
---|
32 | CC_SWITCHES = $(CFLAGS) $(INCLUDES) $(DEFINES) |
---|
33 | |
---|
34 | FILES = \ |
---|
35 | $(srcdir)/string.cc \ |
---|
36 | Makefile |
---|
37 | |
---|
38 | destdir = $(prefix)/examples/objects/string |
---|
39 | |
---|
40 | |
---|
41 | PROGS = \ |
---|
42 | string |
---|
43 | |
---|
44 | all: $(PROGS) |
---|
45 | |
---|
46 | string: $(srcdir)/string.cc |
---|
47 | $(CXX) $(CXX_SWITCHES) -o $@ $< $(LIBS) |
---|
48 | |
---|
49 | install: |
---|
50 | $(MKDIR_P) -m 0755 $(destdir) |
---|
51 | for i in $(FILES) ; do \ |
---|
52 | $(INSTALL) -m 0444 $$i $(destdir) ; \ |
---|
53 | done |
---|
54 | for i in $(PROGS) ; do \ |
---|
55 | $(INSTALL) -m 0555 $$i $(destdir) ; \ |
---|
56 | done |
---|
57 | |
---|
58 | clean: |
---|
59 | $(RM) $(PROGS) |
---|
60 | |
---|
61 | distclean: clean |
---|
62 | $(RM) Makefile *~ |
---|
Note: See
TracBrowser
for help on using the repository browser.