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

Last change on this file since 489 was 489, checked in by dkearney, 18 years ago

new configure and make scripts to help automate the build process

File size: 1.2 KB
Line 
1# define rappture src directory
2ifndef RP_BASE
3RP_BASE         = @prefix@
4endif
5
6PROGS           = plot plotc
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
30plot: plot.cc
31        if test "`uname`" == "Darwin"; then \
32                $(CXX) $(DEBUG) -DDEBUG $(INCL_FILES) -o $@ $< $(LIB_RAPPTURE_MAC); \
33        else \
34                $(CXX) $(DEBUG) -DDEBUG $(INCL_FILES) -o $@ $< $(LIB_RAPPTURE); \
35        fi
36
37plotc: plotc.c
38        if test "`uname`" == "Darwin"; then \
39                $(CXX) $(DEBUG) -DDEBUG $(INCL_FILES) -o $@ $< $(LIB_RAPPTURE_MAC); \
40        else \
41                $(CC) $(DEBUG) -DDEBUG $(INCL_FILES) -o $@ $< $(LIB_RAPPTURE) -lm; \
42        fi
43
44#### CLEAN UP ############################################################
45clean:
46        rm -f $(PROGS) run*.xml
47
48distclean:
49        - rm Makefile
Note: See TracBrowser for help on using the repository browser.