1# Description file for rle get programs. 2 3#set DEST GET_DEST Where to install tools 4DEST = ../bin 5 6# Executables. The .out will be stripped off in the install action. 7#ifadd BOBCAT PGMS getbob.out 8#ifadd BOBCAT PGMS read98721.out 9#ifadd FB PGMS getfb.out 10#ifadd IRIS PGMS getiris.out getmex.out 11#ifadd IRIS4D PGMS get4d.out 12#ifadd ORION PGMS get_orion.out 13#ifadd SUNTOOLS PGMS getsun.out 14#ifadd TAAC1 PGMS gettaac.out 15#ifadd X10 PGMS getx10.out 16#ifadd APOLLO PGMS getap.out 17#ifadd BOBCAT PGMS getren.out 18#ifadd AMIGA DIRS getami 19#ifadd CX3D DIRS cx3d 20#ifadd GRINNELL DIRS gmr27 21#ifadd HPQCR DIRS qcr 22#ifadd NEXT DIRS next 23#ifadd X11 DIRS getx11 24# geticr requires pbmplus tools. 25#ifdef PBMPLUS 26#ifadd GETICR SCRIPTS geticr.sh 27#endif 28 29#emit PGMS 30PGMS = getsun.out 31 32#emit DIRS 33DIRS = getx11 34 35#emit SCRIPTS 36SCRIPTS = 37 38# ALLDIRS is all subdirectories, regardless of whether they are active 39ALLDIRS = gmr27 cx3d getx11 qcr 40 41# Default is what is to be made if nothing is specified. 42default: $(PGMS) subdirs 43 44# To install 45install: default install-pgm install-subdirs install-script 46 touch install 47 48# Everything depends on the rle headers and libraries. 49# 'keep_make_happy' is there to keep make happy if PGMS is empty. 50$(PGMS) keep_make_happy: $(RI)/rle.h $(RI)/rle_config.h 51 52# Programs that need specific make rules (presumably all of them) 53 54#ifdef FB 55# getfb - get to a BRL libfb display 56#@getfb.out: getfb.c 57#@ $(CC) $(CFLAGS) $(INCFB) $*.c $(LIBS) $(LIBFB) $(LIBX11) -lm -o $*.new 58#@ mv $*.new $@ 59#endif 60 61#ifdef XWINDOWS 62# getx10 - get to an X display 63#@getx10.out: getx10.c 64#@ $(CC) $(CFLAGS) $(INCX10) $*.c $(LIBS) $(LIBX10) -lm -o $*.new 65#@ mv $*.new $@ 66#endif 67 68#ifdef APOLLO 69# getap - get to an Apollo display 70# will build with the default rule 71#endif APOLLO 72 73#ifdef IRIS 74# getmex - get to a mex window on an Iris 2000 or 3000 75#@getmex.out: getmex.c 76#@ $(CC) $(CFLAGS) $*.c $(LIBS) $(LIBIRIS) -lm -o $*.new 77#@ mv $*.new $@ 78# getiris - get to an Iris ( no mex ) 79#@getiris.out: getiris.c 80#@ $(CC) $(CFLAGS) $*.c $(LIBS) $(LIBIRIS) -lm -o $*.new 81#@ mv $*.new $@ 82#endif 83 84#ifdef IRIS4D 85# get4d - get to a max window on an Iris/4D. 86#@get4d.out: get4d.c 87#@ $(CC) $(CFLAGS) $*.c $(LIBS) $(LIBIRIS4D) -lm -o $*.new 88#@ mv $*.new $@ 89#endif 90 91#ifdef BOBCAT 92# getbob - get to an HP Bobcat (series hp9000/300) 93#@getbob.out: getbob.c 94#@ $(CC) $(CFLAGS) $*.c $(LIBS) $(LIBBOBCAT) -lm -o $*.new 95#@ mv $*.new $@ 96#@getren.out: getren.c 97#@ $(CC) $(CFLAGS) $*.c $(LIBS) $(LIBBOBCAT) -lm -o $*.new 98#@ mv $*.new $@ 99#@read98721.out: read98721.c 100#@ $(CC) $(CFLAGS) $*.c $(LIBS) $(LIBBOBCAT) -lm -o $*.new 101#@ mv $*.new $@ 102#endif 103 104#ifdef SUNTOOLS 105# getsun - display on Suns running SunTools 106getsun.out: getsun.c 107 $(CC) $(CFLAGS) $*.c $(LIBS) $(LIBSUNTOOLS) -lm -o $*.new 108 mv $*.new $@ 109#endif 110 111#ifdef TAAC1 112# gettaac - display on Sun TAAC 1 113gettaac.out: gettaac.c 114 $(CC) $(CFLAGS) $*.c $(LIBS) $(LIBTAAC1) -lm -o $*.new 115 mv $*.new $@ 116#endif 117 118# Default rule for making a program from its .c file. 119# The mv will not be done if there is an error, so a broken program 120# will not be left around. 121.SUFFIXES: 122.SUFFIXES: .out .c 123.c.out: 124 $(CC) $(CFLAGS) $< $(LIBS) -lm -o $*.new 125 mv $*.new $@ 126 127# Clean up directory and installed binaries 128pristine: pristine-pgm 129 130# Just clean up directory 131clean: clean-pgm 132 133# Dependency lines. Make sure to #ifdef them. 134# Not generally needed, as all programs depend on rle.h above. 135# Except perhaps for special make rules, .o dependencies are not needed, 136# as most rules go directly from .c to .out 137 138