# @(#)makefile 17.1.1.1 (ESO-IPG) 01/25/02 17:32:48 # # .COPYRIGHT: Copyright (c) 1988 European Southern Observatory, # all rights reserved # .TYPE make file # .NAME $MIDASHOME/$MIDVERS/install/unix/test # .LANGUAGE makefile syntax # .ENVIRONMENT Unix Systems. # .COMMENT creates executable Shell Scripts # .REMARKS # .AUTHOR Carlos Guirao # .VERSION 1.1 910715: Implementation # .VERSION 3.0 930308: Using default.mk file # .VERSION 3.1 930325: -Bstatic -lXt. The shared library on SUN returns # some undefined. # .VERSION 3.2 930516: -Bstatic removed. Unknown in Ultrix. include ../../../local/default.mk LINC = . XWLIB = $(X11_LIBPATH) -lX11 XMLIB = $(X11_LIBPATH) $(MOTIF_LIBPATH) $(X_LIBS) CFLAGS = $(C_OPT) $(DEBUG) $(LSYS) $(SYS) $(OSSYS) $(UNDEFS) -I$(LINC) -I$(INC) $(X11INC) $(XMINC) .for.f: rm -f $*.f cp $< $*.f .for.o: rm -f $*.f cp $< $*.f $(F77) $(FFLAGS) $*.f rm -f $*.f # DEPENDENCIES: all: $(OUT) testc.exe: testc.o $(LDCC) testc.o $(SLIB) -o $@ testf.exe: testf.o $(LD77_CMD) testf.o $(SLIB) -o $@ testlib.a: testc.o testf.o $(AR) $(AR_OPT) testlib.a testc.o testf.o testx11.exe: testx11.o $(LDCC) testx11.o $(XWLIB) $(SLIB) -o $@ motif_rel.exe: testxm.o $(LDCC) testxm.o $(SLIB) -o $@ testxm.exe: testxm.o $(LDCC) testxm.o $(XMLIB) $(SLIB) -o $@ oserror.exe: oserror.o $(LDCC) oserror.o $(SLIB) -o $@ string.exe: string.o $(LDCC) string.o $(SLIB) -o $@ fmod.exe: fmod.o $(LDCC) fmod.o -lm $(SLIB) -o $@ math.exe: mathf.o mathc.o $(LD77_CMD) mathf.o mathc.o $(SLIB) -o $@ testxm.o: testxm.c $(CC) $(CFLAGS) -D_NO_PROTO -c $< clean: rm -f *.exe rm -f *.f rm -f *.o rm -f *.a