/[PAMELA software]/calo/flight/CaloBragg/doc/Makefile
ViewVC logotype

Contents of /calo/flight/CaloBragg/doc/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Aug 19 11:55:27 2010 UTC (14 years, 3 months ago) by mocchiut
Branch: MAIN
CVS Tags: HEAD
Working example added

1 SHELL = /bin/sh
2 # decide on compiler and flags depending on host
3 CC = g++
4 CFLAGS=-fPIC -pthread -O3
5 ALL_CFLAGS = -Wall $(CFLAGS) $(PAM_BIT)
6
7 CROOT= root -l -b -q
8
9
10 LIBS = $(PAM_LIB)/libyoda.so $(PAM_LIB)/libDarthVader.so $(PAM_LIB)/libPamLevel2.so $(PAM_LIB)/libCaloBragg.so `root-config --cflags --glibs`
11 INCS =-I `root-config --incdir` -I$(PAM_INC) -I$(PAM_INC)/yoda/ -I./ -I/gpfs/wizard/flight/analysis/cecilia/pamVMC/PamVMC/ac/include/ -I/gpfs/wizard/flight/analysis/cecilia/pamVMC/PamVMC/cal/include/ -I/gpfs/wizard/flight/analysis/cecilia/pamVMC/PamVMC/trk/include/ -I/gpfs/wizard/flight/analysis/cecilia/pamVMC/PamVMC/nd/include/ -I/gpfs/wizard/flight/analysis/cecilia/pamVMC/PamVMC/s4/include/ -I/gpfs/wizard/flight/analysis/cecilia/pamVMC/PamVMC/tof/include/ -I/gpfs/wizard/flight/analysis/cecilia/pamVMC/PamVMC/include/ -I/gpfs/wizard/flight/analysis/emiliano/fluxes/electrons/062009/lib/ROOT5.24/include/
12 EXE = myexample.exe
13 # pattern rule to compile object files from C files
14 # might not work with make programs other than GNU make
15 %.o : %.cpp Makefile
16 $(CC) $(ALL_CFLAGS) $(INCS) -c $< -o $@
17
18 all: $(EXE)
19
20 EXAMPOBJ = example.o
21 myexample.exe: $(EXAMPOBJ) Makefile
22 $(CC) $(ALL_CFLAGS) $(INCS) $(EXAMPOBJ) $(LIBS) -o example
23
24 .PHONY : clean
25 clean:
26 rm -f *.o *.so *.exe

  ViewVC Help
Powered by ViewVC 1.1.23