#! gnumake #--------------------------------------------------- # The D. P. Weygand et. al. Makefile #--------------------------------------------------- include $(BUILDS)/cms/Rules.make INCLUDE := -I../../include $(INCLUDE) TESTLIBS = -L$(TOP_DIR)/lib/$(OS_NAME) -L$(HALLDLIB) -ldata -lkine_c MISCLIB_SunOS := -L/usr/lib -lm -lc -lnsl -lsocket MISCLIB_HP-UX := -L/usr/lib -lm -lc -lf MISCLIB_AIX := -L/usr/lib -lxlf90 -lm -lc MISCLIB_Linux := -L/usr/lib -lm -lc /usr/lib/libf2c.a MISCLIB_OSF1 := -L/usr/lib -lm -lc -lfor -lUfor MISCLIB_IRIX64 := -L/usr/lib64 -lm MISCLIB_IRIX := -L/usr/lib -lm MISCLIB := $(MISCLIB_$(OS_NAME)) XLIB= -L/lib RPCLIB= -L/usr/lib -lrpcsvc TCLLIB= -L/usr/local/lib -ltcl LIBS= $(TESTLIBS) $(STDLIBS) $(MISCLIB) -L$(CERNLIBDIR) $(CERNLIB) PROGRAM= mcfilter exe: mcfilter SRCS= mcfilter.c FSRC= newbeam.f newcharged.f newgamma.f gausran.f FOBJ =${FSRC:.f=.o} OBJS= $(patsubst %.c,$(OBJDIR)/%.o,$(SRCS)) $(PROGRAM): $(OBJS) $(FOBJ) $(FC) -v -o $@ $(CDBG) $(FINCLUDE) $^ $(LIBS) install: mcfilter mv -f mcfilter $(TOP_DIR)/bin/$(OS_NAME) env: @echo CC $(CC) @echo INCLUDE $(INCLUDE) @echo BOSPATH $(BOSPATH) @echo FLIB $(FLIB) @echo FINCLUDE $(FINCLUDE) @echo LIBS $(LIBS) @echo OBJS $(OBJS) @echo OBJDIR $(OBJDIR) @echo FOBJ $(FOBJ) @echo FLIB $(FLIB) @echo RECLIB $(RECLIB) @echo TCLLIB $(TCLLIB) @echo CDBG $(CDBG) @echo CFLAGS $(CFLAGS) @echo CERN_ROOT $(CERN_ROOT) @echo CERNLIB $(CERNLIB) @echo CERNLIBDIR $(CERNLIBDIR)