source: trunk/examples/app-fermi/cee/Makefile @ 124

Last change on this file since 124 was 124, checked in by dkearney, 19 years ago

added c example for app-fermi
not sure if it compiles on mac

File size: 933 bytes
Line 
1# define rappture src directory
2RP_BASE         = /opt/rappture
3
4PROGS           = fermi
5
6# define our compiling environment
7#
8CC              = gcc
9CXX             = g++
10DEBUG           = -g -Wall
11DEBUG_PLUS      = -g -DDEBUG
12
13# define our directories
14#
15INCLUDES_DIR    = $(RP_BASE)/include
16INCL_CEE        = -I $(INCLUDES_DIR)/cee
17INCL_CORE       = -I $(INCLUDES_DIR)/core
18INCL_RP_DEPS    = -I $(RP_BASE)/include
19
20INCL_FILES      = $(INCL_CEE) $(INCL_CORE) $(INCL_RP_DEPS)
21
22LIB_DIR         = $(RP_BASE)/lib
23LIB_INC_PREFIX  = -Wl,-rpath,$(LIB_DIR) -L$(LIB_DIR)
24LIB_RAPPTURE    = -Wl,-rpath,$(LIB_DIR) -L$(LIB_DIR) -lrappture
25
26all: $(PROGS)
27
28fermi: fermi.c
29        $(CC) $(DEBUG) -DDEBUG $(INCL_FILES) -o $@ $< $(LIB_RAPPTURE) -lm
30mac-fermi: fermi.c
31        $(CC) $(DEBUG) -DDEBUG $(INCL_FILES) -o plotc $< -L$(LIB_DIR) -lrappture -lscew
32
33#### CLEAN UP ############################################################
34clean:
35        rm -f $(PROGS) run*.xml
Note: See TracBrowser for help on using the repository browser.