Last change
on this file since 833 was
833,
checked in by dkearney, 17 years ago
|
updated configure to allow user to compile with or without perl, python, octave, matlab
updated makefiles in examples dir to keep it quiet during compilation.
|
File size:
1.6 KB
|
Line | |
---|
1 | # define rappture src directory |
---|
2 | ifndef RP_BASE |
---|
3 | RP_BASE = @prefix@ |
---|
4 | endif |
---|
5 | |
---|
6 | PROGS = plot plotc compress compressc |
---|
7 | |
---|
8 | # define our compiling environment |
---|
9 | # |
---|
10 | CC = @CC@ |
---|
11 | CXX = @CXX@ |
---|
12 | DEBUG = -g -Wall |
---|
13 | DEBUG_PLUS = -g -DDEBUG |
---|
14 | |
---|
15 | # define our directories |
---|
16 | # |
---|
17 | INCLUDES_DIR = $(RP_BASE)/include |
---|
18 | INCL_CEE = -I $(INCLUDES_DIR)/cee |
---|
19 | INCL_CORE = -I $(INCLUDES_DIR)/core |
---|
20 | INCL_RP_DEPS = -I $(RP_BASE)/include |
---|
21 | |
---|
22 | INCL_FILES = $(INCL_CEE) $(INCL_CORE) $(INCL_RP_DEPS) |
---|
23 | |
---|
24 | LIB_DIR = $(RP_BASE)/lib |
---|
25 | LIB_RAPPTURE = -Wl,-rpath,$(LIB_DIR) -L$(LIB_DIR) -lrappture |
---|
26 | LIB_RAPPTURE_MAC = -L$(LIB_DIR) -lrappture -lscew |
---|
27 | |
---|
28 | all: $(PROGS) |
---|
29 | |
---|
30 | compress: compress.cc |
---|
31 | @if test "`uname`" == "Darwin"; then \ |
---|
32 | $(CXX) $(DEBUG) $(INCL_FILES) -o $@ $< $(LIB_RAPPTURE_MAC); \ |
---|
33 | else \ |
---|
34 | $(CXX) $(DEBUG) $(INCL_FILES) -o $@ $< $(LIB_RAPPTURE); \ |
---|
35 | fi |
---|
36 | |
---|
37 | compressc: compress.c |
---|
38 | @if test "`uname`" == "Darwin"; then \ |
---|
39 | $(CC) $(DEBUG) $(INCL_FILES) -o $@ $< $(LIB_RAPPTURE_MAC); \ |
---|
40 | else \ |
---|
41 | $(CC) $(DEBUG) $(INCL_FILES) -o $@ $< $(LIB_RAPPTURE); \ |
---|
42 | fi |
---|
43 | |
---|
44 | plot: plot.cc |
---|
45 | @if test "`uname`" == "Darwin"; then \ |
---|
46 | $(CXX) $(DEBUG) -DDEBUG $(INCL_FILES) -o $@ $< $(LIB_RAPPTURE_MAC); \ |
---|
47 | else \ |
---|
48 | $(CXX) $(DEBUG) -DDEBUG $(INCL_FILES) -o $@ $< $(LIB_RAPPTURE); \ |
---|
49 | fi |
---|
50 | |
---|
51 | plotc: plotc.c |
---|
52 | @if test "`uname`" == "Darwin"; then \ |
---|
53 | $(CXX) $(DEBUG) -DDEBUG $(INCL_FILES) -o $@ $< $(LIB_RAPPTURE_MAC); \ |
---|
54 | else \ |
---|
55 | $(CC) $(DEBUG) -DDEBUG $(INCL_FILES) -o $@ $< $(LIB_RAPPTURE) -lm; \ |
---|
56 | fi |
---|
57 | |
---|
58 | #### CLEAN UP ############################################################ |
---|
59 | clean: |
---|
60 | rm -f $(PROGS) run*.xml |
---|
61 | |
---|
62 | distclean: clean |
---|
63 | - rm Makefile |
---|
Note: See
TracBrowser
for help on using the repository browser.