CC := gcc CPP := g++ F77 := gfortran NETLIB := -lnsl XLIBS := -L/usr/X11R6/lib -lXpm -lSM -lXm -lXt -lICE -lXext -lX11 -lXp -ldl SWITCHES := -DCERNLIB_SINGLE COPTS = -g $(SWITCHES) FOPTS = -g -Wno-globals $(SWITCHES) GLIBS := -L/usr/lib/gcc-lib/alpha-redhat-linux/egcs-2.91.66/ -lg2c CC := gcc CPP := g++ F77 := gfortran NETLIB := -lnsl XLIBS := -L/usr/X11R6/lib -lXpm -lSM -lXm -lXt -lICE -lXext -lX11 -lXp -ldl COPTS = -g $(SWITCHES) FOPTS = -g $(SWITCHES) -fno-automatic GLIBS := -lXmu -lSM -lICE -lpthread EXPORTDYNAMIC = -Wl,-export-dynamic MISC_FIXES := gtnext.o gdrawp.o gnotub.o AUXF = gukine.o guout.o gustep.o guxcs.o gsstak.o gltrac.o \ define_materials.o define_geometry.o GXFIXED = gxcs.o gxphys.o CERNLIB = $(CERN_ROOT)/bin/cernlib CERN_LEVEL = 2005 all: sbend++ sbend sbend++: sbend++.o uginit.o uglast.o $(AUXF) $(GXFIXED) $(MISC_FIXES) $(F77) -o $@ $(FOPTS) $^ \ `$(CERNLIB) -v $(CERN_LEVEL) geant321 pawlib graflib/Motif packlib mathlib` \ $(EXPORTDYNAMIC) $(GLIBS) sbend: sbend.o uginit.o uglast.o $(AUXF) $(MISC_FIXES) $(F77) -o $@ $(FOPTS) $^ \ `$(CERNLIB) geant321 mathlib graflib grafX11` \ $(NETLIB) $(XLIBS) $(GLIBS) .F.o: $(F77) $(FOPTS) -I. -I$(CERN_ROOT)/include -DCERNLIB_MOTIF -c -o $@ $< .f.o: $(F77) $(FOPTS) -I. -I$(CERN_ROOT)/include -c -o $@ $< clean: /bin/rm -f *.o last.kumac* paw.metafile