# Makefile for xdlmapman & xdldataman # Requires XDL_VIEW and CCP4LIB libraries!!! # NOTE This has been tested only on IRIX5.2. Change the # variables at the top of this file to suite your system. ################ # Check these variables ################ bindir = $(CBIN) ### The following work for IRIX5.2 FC = fc -w XFFLAGS = FOPTIM = FFLAGS = $(FOPTIM) $(XFFLAGS) LIB_DIR = $(CCP4_LIB) # -lXaw -lXmu removed from link, as apparently not used. LDFLAGS = -L$(LIB_DIR) -lccp4 -lxdl_view -L/usr/X11R6/lib \ -lXt -lSM -lICE -lX11 -L/usr/local/lib/ -lf2c ### The following are suggested for OSF/1 but have not been tested. #FFLAGS = -Olimit 4000 -C -O -u -v -check_bounds #LDFLAGS = -L$(LIB_DIR) -lccp4 -lxdl_view -lXmu -lXt -lX11 ################ # Below here shouldn't require changes ################ SHELL= /bin/sh OBJ1 = thetab.o xdlmapman.o xdlmapman_subs.o xdl_gksubs.o gkccp4_subs.o OBJ2 = xdldataman.o xdldataman_subs.o xdl_gksubs.o gkccp4_subs.o xps_graf.o all: xdlmapman xdldataman install: all test -s ./xdldataman && cp xdldataman $(bindir) || true test -s ./xdlmapman && cp xdlmapman $(bindir) || true xdlmapman: $(OBJ1) cc -c thetab.c rm -f ./xdlmapman $(FC) $(FFLAGS) -o ./xdlmapman $(OBJ1) $(LDFLAGS) xdldataman: $(OBJ2) rm -f ./xdldataman $(FC) $(FFLAGS) -o ./xdldataman $(OBJ2) $(LDFLAGS) xdlmapman.o: xdlmapman.f xdlmapman.incl $(FC) $(FFLAGS) -c xdlmapman.f xdlmapman_subs.o: xdlmapman_subs.f $(FC) $(FFLAGS) -c xdlmapman_subs.f xdldataman.o: xdldataman.f xdldataman.incl $(FC) $(FFLAGS) -c xdldataman.f xdldataman_subs.o: xdldataman_subs.f $(FC) $(FFLAGS) -c xdldataman_subs.f xdlgk_subs.o: xdlgk_subs.f xdlstuff.incl $(FC) $(FFLAGS) -c xdlgk_subs.f gkccp4_subs.o: gkccp4_subs.f $(FC) $(FFLAGS) -c gkccp4_subs.f xps_graf.o: xps_graf.f xps.incl $(FC) $(FFLAGS) -c xps_graf.f empty-targets: test -s xdldataman && rm -f xdldataman && touch xdldataman || true test -s xdlmapman && rm -f xdlmapman && touch xdlmapman || true clean : ; -rm -f *.o