# include ${FLUPRO}/makeflags # #CC = gcc #CCOPTS = -g -m32 # Programs needed for compilation CSRCS = hpadd.f \ hpc.f \ hpfor.f COBJS = $(CSRCS:.f=.o) CPRGS = $(CSRCS:.f=) # Helper utilities FSRCS = detsuw.f \ usbrea.f \ usbsuw.f \ usrsuw.f \ usrsuwev.f \ ustsuw.f \ usxrea.f \ usxsuw.f \ usysuw.f \ gplevbin.f CCSRCS = usbmax.c OBJS = $(FSRCS:.f=.o) $(CCSRCS:.c=.o) PRGS = $(FSRCS:.f=) $(CCSRCS:.c=) .SUFFIXES: .SUFFIXES: .f .c .o .f.o: $(FLUPRO)/flutil/fff -N $< .c.o: $(CC) $(CCOPTS) -c $< #all: comp $(PRGS) pawlevbin pawlevrot all: comp $(PRGS) $(PRGS): $(OBJS) ./lfluka -o $(subst output,,$@) $(subst output,,$@).o pawlevbin: pawlevbin.o # $(F77) -o $@ $< -L$(FLUPRO) -lflukahp `cernlib` ./lflukac -C -o $@ $< #pawlevrot: pawlevrot.o ## $(F77) -o $@ $< -L$(FLUPRO) -lflukahp `cernlib` # ./lflukac -C -o $@ $< comp: $(CPRGS) $(CPRGS): $(COBJS) # $(F77) -m32 -o $(subst output,,$@) $(subst output,,$@).o $(F77) $(FLINK) -o $(subst output,,$@) $(subst output,,$@).o clean: # @rm -f *~ $(COBJS) $(OBJS) $(PRGS) $(CPRGS) pawlevbin pawlevrot @rm -f *~ $(COBJS) $(OBJS) $(PRGS) $(CPRGS) pawlevbin