# # File for building the PDSTV program. # # 26 Jul 2001, acr: Separated from general tools build. # 05 Dec 2006, acr: Updated dependencies # 15 Apr 2011, acr: Tinkered with CC and CFLAGS macros # ############################################################################## .SUFFIXES : .SUFFIXES : .a .o .c .h # Macros: CC = cc # This forces creation of a 32-bit binary, which should run on both the i386 # and x86_64 linux machines here at UMCP: # For the new server we'll be 64-bit all the way. #CFLAGS = -m32 #----------------------------------------------------------------------------- # Main target: pdstv : pdstv.c pdstv.h tverr.h tvutil.h asctv.h bintv.h \ libtv.a(asctv.o) \ libtv.a(bintv.o) \ libtv.a(tvutil.o) \ libtv.a(tverr.o) ${CC} ${CFLAGS} -o $@ pdstv.c libtv.a -lm libtv.a(asctv.o) : asctv.c asctv.h pdstv.h tvutil.h tverr.h libtv.a(bintv.o) : bintv.c bintv.h pdstv.h tvutil.h tverr.h libtv.a(tvutil.o) : tvutil.c tvutil.h pdstv.h tverr.h libtv.a(tverr.o) : tverr.c tverr.h #----------------------------------------------------------------------------- # Cleanup target: CLEANUP : -rm *% -rm pdstv -rm libtv.a