--- ./Makefile.00	2008-01-06 14:23:29.000000000 +0100
+++ ./Makefile	2008-01-06 14:29:29.000000000 +0100
@@ -3,16 +3,28 @@
 #
 # Makefile for fbv
 
-include Make.conf
+# include Make.conf
+
+prefix	= /usr/local
+bindir	= /usr/local/bin
+mandir	= /usr/local/man
+# infodir	= /usr/local/info
 
 CC	= gcc 
 CFLAGS  = -O2 -Wall -D_GNU_SOURCE
 
 SOURCES	= main.c jpeg.c gif.c png.c bmp.c fb_display.c transforms.c
 OBJECTS	= ${SOURCES:.c=.o}
+LDFLAGS = -O2
+STATIC_LDFLAGS = -static
 
 OUT	= fbv
-#LIBS	= -lungif -L/usr/X11R6/lib -ljpeg -lpng
+
+# LIBS	= -ljpeg 
+LIBS	= -lungif -L/usr/X11R6/lib -ljpeg -lpng
+# Configure for static binary with jpeg only: 
+# ./configure --without-libungif --without-libpng --without-bmp
+STATIC_LIBS	= /usr/lib/libjpeg.a
 
 all: $(OUT)
 	@echo Build DONE.
@@ -20,8 +32,11 @@
 $(OUT): $(OBJECTS)
 	$(CC) $(LDFLAGS) -o $(OUT) $(OBJECTS) $(LIBS)
 
+$(OUT).static: $(OBJECTS)
+	$(CC) $(STATIC_LDFLAGS) -o $(OUT).static $(OBJECTS) $(STATIC_LIBS)
+
 clean:
-	rm -f $(OBJECTS) *.o *~ $$$$~* *.bak core config.log $(OUT)
+	rm -f $(OBJECTS) *.o *~ $$$$~* *.bak core config.log $(OUT) $(OUT).static
 
 distclean: clean
 	@echo -e "error:\n\t@echo Please run ./configure first..." >Make.conf
--- ./ChangeLog.00	2008-01-06 14:23:29.000000000 +0100
+++ ./ChangeLog	2008-01-06 14:30:08.000000000 +0100
@@ -0,0 +1,5 @@
+1.0c	2008-01-06	Gilbert Ashley <amigo@ibiblio.org>
+      * added a rule to Makefile for building a static binary
+        with only jpeg support
+      * moved defines from Make.conf to Makefile
+      
