/[PAMELA software]/PamelaLevel2/doc/examples/Makefile
ViewVC logotype

Diff of /PamelaLevel2/doc/examples/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by pam-fi, Tue Dec 12 13:24:23 2006 UTC revision 1.2 by pam-fi, Wed Jan 3 13:28:49 2007 UTC
# Line 5  CFLAGS=-fPIC -pthread Line 5  CFLAGS=-fPIC -pthread
5  ALL_CFLAGS = -Wall -O6 $(CFLAGS)  ALL_CFLAGS = -Wall -O6 $(CFLAGS)
6    
7    
 OBJS = Loop.o My-Selection.o My-Histos.o  
8  LIBS = $(PAM_LIB)/libyoda.so $(PAM_LIB)/libDarthVader.so $(PAM_LIB)/libPamLevel2.so  `root-config --cflags --glibs`  LIBS = $(PAM_LIB)/libyoda.so $(PAM_LIB)/libDarthVader.so $(PAM_LIB)/libPamLevel2.so  `root-config --cflags --glibs`
9  INCS =-I `root-config --incdir`  -I$(PAM_INC) -I$(PAM_INC)/yoda/ -I./  INCS =-I `root-config --incdir`  -I$(PAM_INC) -I$(PAM_INC)/yoda/ -I./
10  EXE = Loop.exe  EXE = Loop.exe
11  # pattern rule to compile object files from C files  # pattern rule to compile object files from C files
12  # might not work with make programs other than GNU make  # might not work with make programs other than GNU make
13  %.o : %.cpp Makefile  %.o : %.cpp Makefile
# Line 16  EXE = Loop.exe Line 15  EXE = Loop.exe
15    
16  all: $(EXE)  all: $(EXE)
17    
 $(EXE): $(OBJS) Makefile  
         $(CC) $(ALL_CFLAGS) $(INCS) $(OBJS) $(LIBS) -o $(EXE)  
18    
19    OBJS = Loop.o My-Selection.o My-Histos.o
20    Loop.exe: $(OBJS) Makefile
21            $(CC) $(ALL_CFLAGS) $(INCS) $(OBJS) $(LIBS) -o Loop.exe
22    
23    OBJS0 = Loop-0.o My-Selection-0.o My-Histos-0
24    Loop-0.exe: $(OBJS0) Makefile
25            $(CC) $(ALL_CFLAGS) $(INCS) $(OBJS0) $(LIBS) -o Loop-0.exe
26    
27  .PHONY : clean  .PHONY : clean
28  clean:  clean:
29          rm -f $(OBJS) $(EXE)          rm -f *.o *.exe
       
     

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23