source: trunk/examples/app-fermi/cee/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: 967 bytes
Line 
1# define rappture src directory
2ifndef RP_BASE
3RP_BASE         = @prefix@
4endif
5
6PROGS           = fermi
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
26
27all: $(PROGS)
28
29fermi: fermi.c
30        if test "`uname`" == "Darwin"; then \
31                $(CC) $(DEBUG) -DDEBUG $(INCL_FILES) -o $@ $< -L$(LIB_DIR) -lrappture -lscew; \
32        else \
33                $(CC) $(DEBUG) -DDEBUG $(INCL_FILES) -o $@ $< $(LIB_RAPPTURE) -lm; \
34        fi
35
36#### CLEAN UP ############################################################
37clean:
38        rm -f $(PROGS) run*.xml
39
40distclean: clean
41        rm Makefile
Note: See TracBrowser for help on using the repository browser.