--- Makefile.orig 1999-11-07 05:55:19 UTC +++ Makefile @@ -6,30 +6,30 @@ # $Id: Makefile,v 1.8 1999/11/07 05:55:19 evan Exp $ # The installation directories. -BIN= /usr/local/bin -MAN= /usr/local/man/man1 +BIN= ${LOCALBASE}/bin +MAN= ${LOCALBASE}/share/man/man1 # See the README for a description of these options. #OPTIONS= -DNO_32K_CASCADE -DTESTMODE=G640x480x32K -DBUG_WORKAROUND -DONLY_1_8_MODES -OPTIONS= -DBUG_WORKAROUND +OPTIONS= -DBUG_WORKAROUND -DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED -DTARGA_SUPPORTED # This should be the location of the JPEG v6 header files. -JPEG_HEADERS= -I /usr/local/include +JPEG_HEADERS= -I ${LOCALBASE}/include #JPEG_HEADERS= -I /usr/X11R6/include # This should be the location of the JPEG v6 libraries. -JPEG_LIBS= -L /usr/local/lib +JPEG_LIBS= -L ${LOCALBASE}/lib #JPEG_LIBS= -L /usr/X11R6/lib # These may be changed, if desired. -CC= gcc -CCOPTS= -O3 +#CC= gcc +#CCOPTS= -O -pipe # Editing of the rest of this Makefile shouldn't be necessary. -CFLAGS= $(JPEG_HEADERS) -I jpeglib $(CCOPTS) $(OPTIONS) -LIBS= -lvga $(JPEG_LIBS) -ljpeg -lm +CFLAGS+= $(JPEG_HEADERS) -I jpeglib $(OPTIONS) +LIBS= -lvga $(JPEG_LIBS) -ljpeg -lm $(LDFLAGS) LDOPTS= -s SEEJPEG= seejpeg.o jpeg.o image.o display.o cmap.o \ @@ -53,8 +53,8 @@ seejpeg: $(SEEJPEG) $(CC) $(CFLAGS) $(LDOPTS) -o seejpeg $(SEEJPEG) $(LIBS) install: - install -s -o root -g bin -m 4711 seejpeg $(BIN) - install -o root -g root -m 644 seejpeg.1 $(MAN) + install -s -m 4711 seejpeg $(DESTDIR)$(BIN) + install -m 644 seejpeg.1 $(DESTDIR)$(MAN) clean: rm -f *.o jpeglib/*.o *~ core seejpeg