FC	      = f77
GC            = gfortran 

FFLAGS	      = -g -m32

LDFLAGS	      = -g

LIBDIR	      = /root/Desktop/cernlib/2003/lib

LIBS          = -L$(LIBDIR) -lgeant -lpawlib -lpacklib_noshift -lmathlib

OBJS	      = main_WUp.o \
        airgap.o \
        alwindow.o \
		beampipe.o \
		collimator.o \
		dsg0.o \
		empty.o \
		heden.o \
        int_Bz.o \
		nden.o \
		nhe3.o \
		rotation.o \
		scatb.o \
		scate.o \
		scatt.o \
		sm.o \
		sofqnw.o \
		sommers.o \
		target.o \
		wq.o 
none:	        replay

all:	        replay

sim_ray:        replay

replay: $(OBJS)
	$(FC) -o $@ -m32 $(OBJS) $(LIBS)


clean:
	rm *.o fort.* replay
