| 1 |
# @(#)makefile 19.1 (ESO-IPG) 02/25/03 13:58:13 |
| 2 |
# .COPYRIGHT: Copyright (c) 1988 European Southern Observatory, |
| 3 |
# all rights reserved |
| 4 |
# .TYPE make file |
| 5 |
# .NAME $MIDASHOME/$MIDVERS/libsrc/tw/makefile |
| 6 |
# .LANGUAGE makefile syntax |
| 7 |
# .ENVIRONMENT Unix Systems. |
| 8 |
# .COMMENT Compiles source files and generates twlib library |
| 9 |
# |
| 10 |
# .REMARKS |
| 11 |
# .AUTHOR Francois Ochsenbein |
| 12 |
# .VERSION 1.1 880105: Implementation |
| 13 |
# .VERSION 1.2 890104: Generating makefile.com for VMS systems |
| 14 |
# .VERSION 1.3 890120: Use NOTRACING option |
| 15 |
# .VERSION 1.4 890714: Added str1 routines. |
| 16 |
# .VERSION 2.1 901203: New directory structure. CG |
| 17 |
# .VERSION 3.0 930308: Using default.mk file |
| 18 |
|
| 19 |
include ../../local/default.mk |
| 20 |
|
| 21 |
OBJ = termcap.o tvutil.o tvinit.o tvget.o tvgets.o tvput.o tvout.o \ |
| 22 |
tvcursor.o tvclear.o tvindel.o tvhelp.o error.o trace.o str1.o |
| 23 |
|
| 24 |
LIB = $(LIBDIR)/libtw.a |
| 25 |
LLIB = -L$(LIBDIR) -ltw -los |
| 26 |
CMD = tvtest.exe |
| 27 |
OBJS = tvtest.o |
| 28 |
|
| 29 |
# DEPENDENCIES: |
| 30 |
#all: $(MAKEFILE_VMS) $(LIB) $(CMD) |
| 31 |
all: $(MAKEFILE_VMS) $(LIB) |
| 32 |
|
| 33 |
$(MAKEFILE_VMS): makefile |
| 34 |
$(MAKE_VMS) |
| 35 |
|
| 36 |
$(CMD): $(OBJS) $(LIB) |
| 37 |
$(LDCC) $(OBJS) $(LLIB) $(SLIB) -o $@ |
| 38 |
$(STRIP) $@ |
| 39 |
|
| 40 |
$(LIB): $(OBJ) |
| 41 |
$(AR) $(AR_OPT) $(LIB) $(OBJ) |
| 42 |
$(RANLIB) $(LIB) |
| 43 |
|
| 44 |
error.c: $(INC)/osdefos.h \ |
| 45 |
$(INC)/macrogen.h \ |
| 46 |
$(INC)/error.h |
| 47 |
termcap.c: $(INC)/twset.h |
| 48 |
trace.c: $(INC)/osdefos.h \ |
| 49 |
$(INC)/macrogen.h \ |
| 50 |
$(INC)/atype.h \ |
| 51 |
$(INC)/osfile.h |
| 52 |
tvclear.c: $(INC)/twset.h |
| 53 |
tvcursor.c: $(INC)/twset.h |
| 54 |
tvget.c: $(INC)/twset.h |
| 55 |
tvgets.c: $(INC)/twset.h |
| 56 |
tvhelp.c: $(INC)/twset.h |
| 57 |
tvindel.c: $(INC)/twset.h |
| 58 |
tvinit.c: $(INC)/twset.h \ |
| 59 |
$(INC)/osterm.h |
| 60 |
tvout.c: $(INC)/twset.h |
| 61 |
tvput.c: $(INC)/twset.h |
| 62 |
tvtest.c: $(INC)/macrogen.h \ |
| 63 |
$(INC)/ok.h \ |
| 64 |
$(INC)/trace.h \ |
| 65 |
$(INC)/error.h \ |
| 66 |
$(INC)/tw.h \ |
| 67 |
$(INC)/atype.h |
| 68 |
tvutil.c: $(INC)/twset.h |
| 69 |
|
| 70 |
clean: |
| 71 |
rm -f $(OBJ) $(OBJS) |