| 1 | # @(#)makefile 19.1 (ESO-IPG) 02/25/03 14:36:06 |
| 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 3.0 930308: Using default.mk file |
| 15 | |
| 16 | include ../../local/default.mk |
| 17 | |
| 18 | M = ../exec |
| 19 | |
| 20 | LIBL = -L$(LIBDIR) -lmidas.a |
| 21 | |
| 22 | LIBS = $(LIBDIR)/libmidas.a |
| 23 | |
| 24 | OBJ = midashelp.o |
| 25 | |
| 26 | OUT = $(M)/midashelp.exe |
| 27 | |
| 28 | # DEPENDENCIES |
| 29 | all: $(OUT) |
| 30 | |
| 31 | $(M)/midashelp.exe: midashelp.o $(LIBS) |
| 32 | $(LDCC) midashelp.o $(LLIB) $(SLIB) -o $@ |
| 33 | $(STRIP) $@ |
| 34 | |
| 35 | clean: |
| 36 | rm -f $(OBJ) |
| 37 | |
| 38 | clean_exec: |
| 39 | rm -f $(OUT) |