# # Makefile for LUG # # (c) 1992, Raul Rivero # # Makefile for MSDOS machines ( Microsoft's NMAKE ). # # # ******************************************************** # * * # * Check include/lugconfig.h for internal defines !!! * # * * # ******************************************************** # SHELL = /bin/sh # # Directories of LUG package. # DIRS = convert lib utils # # Uncomment next line if you are using other compiler (e.g. gcc) # CC = gcc # # Compiler options ( only C-O-M-P-I-L-E-R, not LUG options ). # COPTS = -O # # Location of LUG header files. # LUGINC = -I../include # # 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/gcc/include/rle 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/gcc/include/tiff 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/gcc/include/jpeg 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 = -I/gcc/include/sgi SGIDEF = -DiSGI # # 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 # # 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 # VIEWDEF = -DiPC VIEWINC = # # Final includes ( don't touch this ! ). # INCS = $(LUGINC) $(URTINC) $(TIFFINC) $(JPEGINC) $(SGIINC) $(VIEWINC) DEFS = $(URTDEF) $(TIFFDEF) $(JPEGDEF) $(SGIDEF) $(VIEWDEF) # # Library objects. # OBJS = ./convert/gif.o ./convert/pix.o ./convert/rla.o \ ./convert/encodgif.o ./convert/pcx.o ./convert/raw.o \ ./convert/rgb.o ./convert/tga.o ./convert/tiff.o \ ./convert/rle.o ./convert/sgi.o ./lib/bitmap.o \ ./lib/error.o ./lib/general.o ./lib/in_out.o \ ./show/vfr.o ./lib/x11.c ./show/x11.o \ ./show/sgi.o ./utils/change.o ./utils/toinverse.o \ ./utils/cut.o ./utils/hsl.o ./utils/quantize.o \ ./utils/tobw.o ./utils/blur.o ./utils/dither.o \ ./utils/medianfilter.o ./utils/rotate.o ./utils/tohalftone.o \ ./utils/flip.o ./utils/mirror.o ./utils/sharpen.o \ ./utils/chroma.o ./utils/gamma.o ./utils/mural.o \ ./utils/solid.o ./utils/histoequal.o ./utils/paste.o \ ./utils/to24.o ./utils/zoom.o ./show/pc.c \ ./convert/heightfield.o ./convert/pbm.o ./convert/ps.o \ ./utils/mask.o ./utils/slowzoom.o ./utils/convolve.o all: liblug.a clean: @cd CONVERT @nmake -NOLOGO clean @cd ..\LIB @nmake -NOLOGO clean @cd ..\SHOW @nmake -NOLOGO clean @cd ..\UTILS @nmake -NOLOGO clean @cd .. install: mv liblug.a /usr/lib archive: ( cd ..; tar cvf luglib.tar lug; compress luglib.tar ) liblug.a: @cd CONVERT @echo make on CONVERT @nmake "INCS=$(INCS)" "DEFS=$(DEF)" "CC=$(CC)" "COPTS=$(COPTS)" -NOLOGO @cd ..\LIB @echo make on LIB @nmake "INCS=$(INCS)" "DEFS=$(DEF)" "CC=$(CC)" "COPTS=$(COPTS)" -NOLOGO @cd ..\SHOW @echo make on SHOW @nmake "INCS=$(INCS)" "DEFS=$(DEF)" "CC=$(CC)" "COPTS=$(COPTS)" -NOLOGO @cd ..\UTILS @echo make on UTILS @nmake "INCS=$(INCS)" "DEFS=$(DEF)" "CC=$(CC)" "COPTS=$(COPTS)" -NOLOGO @cd .. @echo Adding to library ... @cat linka.lst @ar scr liblug.a @linka.lst @mv liblug.a /gcc/lib # # Uncomment the nest line if you have the ranlib command. # ### ranlib liblug.a # # Dependences. #