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