/[PAMELA software]/chewbacca/Makefile
ViewVC logotype

Annotation of /chewbacca/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (hide annotations) (download)
Fri Apr 17 09:56:16 2009 UTC (15 years, 7 months ago) by mocchiut
Branch: MAIN
Changes since 1.7: +1 -1 lines
SUSE bug in Makefile fixed

1 mocchiut 1.1 #
2     #
3     #
4 mocchiut 1.5 export debug=0
5     export release=1
6     #
7     export RED='\E[1;31;40m'
8     export GREEN='\E[1;32;40m'
9     export YELLOW='\E[1;33;40m'
10     export BLUE='\E[1;34;40m'
11     export WHITE='\E[1;37;40m'
12     export VIOLET='\E[1;35;40m'
13     export CYAN='\E[1;36;40m'
14     # Here the echo definition to use them
15     export EVIOLET=echo -e ${VIOLET}
16     export ECYAN=echo -e ${CYAN}
17     export ERED=echo -e ${RED}
18     export EGREEN=echo -e ${GREEN}
19     export EYELLOW=echo -e ${YELLOW}
20     export EBLUE=echo -e ${BLUE}
21     export EWHITE=echo -e ${WHITE}
22     # Reset the terminal
23     export RESET=tput sgr0
24     #
25     export BASEDIR=$(shell echo `pwd`)
26     export LD_LIBRARY_PATH+=$(BASEDIR)/event
27     #
28 mocchiut 1.7 export LDFLAGS+=$(PAM_BIT)
29     export CFLAGS+=$(PAM_BIT)
30     export FFLAGS+=$(PAM_BIT)
31 mocchiut 1.5 #
32 mocchiut 1.1 DIRS=event PamOffLineSW YodaProfiler
33 mocchiut 1.5 #
34 mocchiut 1.1 all:
35     for sub_dir in $(DIRS) ; do \
36     ( cd $$sub_dir && make BASEDIR=$(BASEDIR)) ; \
37     done
38    
39     distclean:
40     for sub_dir in $(DIRS) ; do \
41     ( cd $$sub_dir && make distclean) ; \
42     done
43 mocchiut 1.3 for sub_dir in `find ./ -name obj` ; do \
44     rm -rf $$sub_dir ; \
45     done
46 mocchiut 1.1
47     install:
48 mocchiut 1.5 @(${EGREEN} " Creating PAMELA environment "; ${RESET})
49     @if [ "$(PAM_SOFTWARE)" == "" ]; then (${ERED} ""; ${RESET}); \
50     (${ERED} " PLEASE SET THE PAMELA ENVIRONMENT BEFORE INSTALLING "; ${RESET}); \
51     (${ERED} ""; ${RESET}); \
52 mocchiut 1.1 exit; fi
53 mocchiut 1.4 @if [ ! -d $(PAM_HOME) ]; then mkdir $(PAM_HOME); fi
54     @if [ ! -d $(PAM_SOFTWARE) ]; then mkdir $(PAM_SOFTWARE); fi
55     @if [ ! -d $(PAM_LIB) ]; then mkdir $(PAM_LIB); fi
56     @if [ ! -d $(PAM_INC) ]; then mkdir $(PAM_INC); fi
57     @ln -sf $(PAM_SOFTWARE)/inc $(PAM_SOFTWARE)/include
58     @if [ ! -d $(PAM_BIN) ]; then mkdir $(PAM_BIN); fi
59     @if [ ! -d $(PAM_DOC) ]; then mkdir $(PAM_DOC); fi
60     @if [ ! -d $(PAM_MACROS) ]; then mkdir $(PAM_MACROS); fi
61     @if [ ! -d $(PAM_SRC) ]; then mkdir $(PAM_SRC); fi
62     @if [ ! -d $(PAM_CALIB) ]; then mkdir $(PAM_CALIB); fi
63     @if [ ! -d $(FEV_PLUGIN) ]&&[ "$(FEV_PLUGIN)" != "" ]; then mkdir $(FEV_PLUGIN); fi
64 mocchiut 1.5 @(${EGREEN} " Installing "${EWHITE}"libyoda.so "; ${RESET})
65 mocchiut 1.4 @cp -f $(BASEDIR)/event/libyoda.so.0.0.0 $(PAM_LIB)/
66     @ln -sf $(PAM_LIB)/libyoda.so.0.0.0 $(PAM_LIB)/libyoda.so
67     @ln -sf $(PAM_LIB)/libyoda.so.0.0.0 $(PAM_LIB)/libyoda.so.0
68 mocchiut 1.5 @(${EGREEN} " Installing exec file "${EWHITE}"chewbacca"; ${RESET})
69 mocchiut 1.4 @cp -f $(BASEDIR)/PamOffLineSW/chewbacca $(PAM_BIN)/
70 mocchiut 1.5 @(${EGREEN} " Installing "${EWHITE}"yoda headers";${RESET})
71     @(cd $(BASEDIR)/event/ && make distclean)
72 mocchiut 1.6 @rm -rf $(PAM_INC)/yoda/
73 mocchiut 1.8 @cp -rf $(BASEDIR)/event/ $(PAM_INC)/yoda
74 mocchiut 1.6 @cp -rf $(PAM_LIB)/libyoda.so $(BASEDIR)/event/
75 mocchiut 1.5 @(${EGREEN}"")
76 mocchiut 1.4 @(cd YodaProfiler && make forceinstall)

  ViewVC Help
Powered by ViewVC 1.1.23