#!/bin/sh # # # This is an exmaple of a Universal compiler: # # carreras --> is a Silicon Graphics machine # caballe --> is an IBM AIX # --> ... ok, others! ... # # Compiler options ( only C-O-M-P-I-L-E-R, not LUG options ). # CFLAGS = $(INCS) +z +O3 -Aa -D_INCLUDE_POSIX_SOURCE -D_INCLUDE_XOPEN_SOURCE # # Location of LUG header files. # LUGINC = -I../include LUGLIB = -L.. -llug # # If you have intalled the Utah Raster Toolkit library define # next variables, example: # # URTINC = -I/remote/carreras/usr/people/nuevos/correo/urt/include # URTDEF = -DiRLE # # , or leave undefined if you don't have it. # URTINC = -I/usr/local/include/urt URTLIB =-L/usr/remote/lib9/X11/urt -lrle URTDEF = -DiRLE # # If you have intalled the Sam Leffler's TIFF library define # next variables, example: # # TIFFINC = -I/remote/carreras/usr/people/nuevos/correo/libtiff/include # TIFFDEF = -DiTIFF # # , or leave undefined if you don't have it. # TIFFINC = -I/usr/local/include/tiff TIFFLIB = -L/usr/remote/lib9/tiff -ltiff TIFFDEF = -DiTIFF # # If you have intalled the JPEG library define # next variables, example: # # JPEGINC = -I/remote/carreras/usr/people/nuevos/correo/jpeg/src # JPEGDEF = -DiJPEG # # , or leave undefined if you don't have it. # JPEGINC = -I/usr/local/include/jpeg JPEGLIB = -L/usr/remote/lib9/jpeg4A -ljpeg JPEGDEF = -DiJPEG # # If your machine is a SGI computer define next variables, ... ok, # ok, an example: # # SGIINC = -I/usr/include/gl # SGIDEF = -DiSGI # # , else leave undefined. # SGIINC = SGIDEF = # # Define what kind of viwer you'll support. Options are: # # Machine Add # ------- --- # hp9000 -DiHP # sgi/aix -DiGL # pc -DiPC # x11 -DiX11 # vfr ( sgi ) -DiVFR <-- SGI's Video Framer needs hardware # linux -DiLINUX # # Probably, also you'll need give a path to the headers. # # And example: we have a SGI with X11 and a Video FRamer, so # we define... # # VIEWDEF = -DiGL -DiVFR # VIEWINC = -I/usr/include/gl -I/usr/video/vfr/src/inc # VIEWINC = -I/usr/include/X11R5 VIEWLIB = -L/usr/lib/X11R5 -lX11 VIEWDEF = -DiX11 # # Final includes ( don't touch this ! ). # INCS = $(LUGINC) $(URTINC) $(TIFFINC) $(JPEGINC) $(SGIINC) $(VIEWINC) LIBS = $(LUGLIB) $(URTLIB) $(TIFFLIB) $(JPEGLIB) $(VIEWLIB) DEFS = $(URTDEF) $(TIFFDEF) $(JPEGDEF) $(SGIDEF) $(VIEWDEF) all: cabezon fade fademask fadesec hf2gif lugcnv raindrops senoidal siluet \ sx11 zoomlug fade: fade.o cc -o $@ fade.o $(LIBS) cabezon: cabezon.o cc -o $@ cabezon.o $(LIBS) fademask: fademask.o cc -o $@ fademask.o $(LIBS) fadesec: fadesec.o cc -o $@ fadesec.o $(LIBS) hf2gif: hf2gif.o cc -o $@ hf2gif.o $(LIBS) lugcnv: lugcnv.o cc -o $@ lugcnv.o $(LIBS) raindrops: raindrops.o cc -o $@ raindrops.o $(LIBS) -lm senoidal: senoidal.o cc -o $@ senoidal.o $(LIBS) -lm shp: shp.o cc -o $@ shp.o $(LIBS) siluet: siluet.o cc -o $@ siluet.o $(LIBS) slinux: slinux.o cc -o $@ slinux.o $(LIBS) spc: spc.o cc -o $@ spc.o $(LIBS) spcfade: spcfade.o cc -o $@ spcfade.o $(LIBS) ssgi: ssgi.o cc -o $@ ssgi.o $(LIBS) sx11: sx11.o cc -o $@ sx11.o $(LIBS) tovision: tovision.o cc -o $@ tovision.o $(LIBS) zoomlug: zoomlug.o cc -o $@ zoomlug.o $(LIBS) clean: rm -f cabezon fade fademask fadesec hf2gif lugcnv raindrops senoidal \ shp siluet slinux spc spcfade ssgi sx11 tovision zoomlug *.o