| 1 | # @(#)makefile 19.1 (ESO-IPG) 02/25/03 14:36:12 */ |
| 2 | #.COPYRIGHT: Copyright (c) 1990 European Southern Observatory, |
| 3 | # all rights reserved |
| 4 | #.TYPE make file |
| 5 | #.NAME makefile |
| 6 | #.LANGUAGE makefile syntax |
| 7 | #.ENVIRONMENT Unix Systems. |
| 8 | #.COMMENT Compiles source files and generates utility programs |
| 9 | # |
| 10 | #.REMARKS |
| 11 | #.AUTHOR Preben J.Grosbol, ESO/IPG |
| 12 | #.VERSION 1.0 1990-Aug-24 : Creation, PJG |
| 13 | #.VERSION 1.1 1991-Oct-01 : Creating makefile.com |
| 14 | #.VERSION 2.2 920521: Removing MLIB CG |
| 15 | #.VERSION 3.1 940503: dcparm.o in libmutil.a |
| 16 | |
| 17 | include ../../local/default.mk |
| 18 | |
| 19 | M = ../exec |
| 20 | |
| 21 | OBJ = ltape.o |
| 22 | LIB = -L$(LIBDIR) -lmutil -lmidas |
| 23 | LIBS = $(LIBDIR)/libmutil.a $(LIBDIR)/libmidas.a |
| 24 | OUT = $(M)/ltape.exe |
| 25 | |
| 26 | # DEPENDENCIES: |
| 27 | all: $(MAKEFILE_VMS) $(OUT) |
| 28 | |
| 29 | $(MAKEFILE_VMS): makefile |
| 30 | $(MAKE_VMS) |
| 31 | |
| 32 | $(OUT): $(OBJ) $(LIBS) |
| 33 | $(LDCC) $(OBJ) $(LIB) $(MLIB) $(SLIB) -o $@ |
| 34 | $(STRIP) $@ |
| 35 | |
| 36 | clean_exec: |
| 37 | rm -f $(OUT) |
| 38 | |
| 39 | clean: |
| 40 | rm -f $(OBJ) |