source: trunk/examples/c-example/Makefile.in @ 833

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
2ifndef RP_BASE
3RP_BASE         = @prefix@
4endif
5
6PROGS           = plot plotc compress compressc
7
8# define our compiling environment
9#
10CC              = @CC@
11CXX             = @CXX@
12DEBUG           = -g -Wall
13DEBUG_PLUS      = -g -DDEBUG
14
15# define our directories
16#
17INCLUDES_DIR    = $(RP_BASE)/include
18INCL_CEE        = -I $(INCLUDES_DIR)/cee
19INCL_CORE       = -I $(INCLUDES_DIR)/core
20INCL_RP_DEPS    = -I $(RP_BASE)/include
21
22INCL_FILES      = $(INCL_CEE) $(INCL_CORE) $(INCL_RP_DEPS)
23
24LIB_DIR         = $(RP_BASE)/lib
25LIB_RAPPTURE    = -Wl,-rpath,$(LIB_DIR) -L$(LIB_DIR) -lrappture
26LIB_RAPPTURE_MAC = -L$(LIB_DIR) -lrappture -lscew
27
28all: $(PROGS)
29
30compress: 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
37compressc: 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
44plot: 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
51plotc: 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 ############################################################
59clean:
60        rm -f $(PROGS) run*.xml
61
62distclean: clean
63        - rm Makefile
Note: See TracBrowser for help on using the repository browser.