# makefile for hcompress programs # R. White, 20 April 1992 # # Change INSTALLDIR to point to the directory where you want the programs # installed. (The default is your own bin directory.) Then do "make install" # to install the programs. A simple "make" will compile and link the programs # in this directory, but will not install them. # # Copyright (c) 1993 Association of Universities for Research # in Astronomy. All rights reserved. Produced under National # Aeronautics and Space Administration Contract No. NAS5-26555. # INSTALLDIR = ${HOME}/bin # # for solaris add -DSOLARIS to CFLAGS CFLAGS = -c -g -DSOLARIS LDFLAGS = -L. CC = gcc all: nrlhd @echo "All programs compiled and linked." clean : -/bin/rm *.o nrlhd # # default # %.o : %.c $(CC) $(CFLAGS) $*.c -o $@ # # executables # hd64 : hdecomp.o decode.o dodecode.o hinv.o undigitize.o put_data.o \ qtree_decode.o bit_input.o qread.o hsmooth.o getopt.o \ swap_bytes.o qwrite.o log2n.o read_image.o make_image.o \ nrl_image_block.o nrl.inc $(CC) $(LDFLAGS) -o hd64 hdecomp.o decode.o dodecode.o hinv.o \ undigitize.o put_data.o qtree_decode.o bit_input.o qread.o \ hsmooth.o getopt.o swap_bytes.o qwrite.o log2n.o read_image.o \ make_image.o nrl_image_block.o hd64.tar : hdecomp.c decode.c dodecode.c hinv.c \ undigitize.c put_data.c qtree_decode.c bit_input.c qread.c \ hsmooth.c getopt.c swap_bytes.c qwrite.c log2n.c read_image.c \ make_image.c nrl_image_block.c nrl.inc README tar cvf hd64.tar ./*.c ./*.inc ./makefile ./README