$OpenBSD: patch-src_Makefile_in,v 1.2 2011/07/08 11:25:47 jasper Exp $
--- src/Makefile.in.orig	Mon Jun 23 14:13:34 2003
+++ src/Makefile.in	Fri Jul  8 13:22:30 2011
@@ -73,13 +73,13 @@ VERSION = @VERSION@
 
 MAINTAINERCLEANFILES = Makefile.in				
 
-LDFLAGS = -L/usr/X11R6/lib
-INCLUDES = -g -O3 -Wall -I/usr/X11R6/include $(X_CFLAGS) -I$(prefix)/include -I$(includedir) -I. -DPREFIX=\""$(prefix)"\" @GIBLIB_CFLAGS@
+LDFLAGS = -L${X11BASE}/lib
+INCLUDES = -Wall -I${X11BASE}/include $(X_CFLAGS) -I$(prefix)/include -I$(includedir) -I. -DPREFIX=\""$(prefix)"\" @GIBLIB_CFLAGS@
 
 LIBOBJS = @LIBOBJS@
 
 bin_PROGRAMS = scrot
-scrot_SOURCES = main.c getopt.c getopt1.c getopt.h scrot.h options.c options.h debug.h imlib.c structs.h
+scrot_SOURCES = main.c scrot.h options.c options.h debug.h imlib.c structs.h
 
 scrot_LDADD = -lX11 @GIBLIB_LIBS@
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
@@ -91,7 +91,7 @@ PROGRAMS =  $(bin_PROGRAMS)
 DEFS = @DEFS@ -I. -I$(srcdir) -I.
 CPPFLAGS = @CPPFLAGS@
 LIBS = @LIBS@
-scrot_OBJECTS =  main.o getopt.o getopt1.o options.o imlib.o
+scrot_OBJECTS =  main.o options.o imlib.o
 scrot_DEPENDENCIES = 
 scrot_LDFLAGS = 
 CFLAGS = @CFLAGS@
@@ -239,11 +239,9 @@ distdir: $(DISTFILES)
 	    || cp -p $$d/$$file $(distdir)/$$file || :; \
 	  fi; \
 	done
-getopt.o: getopt.c config.h
-getopt1.o: getopt1.c config.h getopt.h
-imlib.o: imlib.c scrot.h getopt.h config.h structs.h debug.h options.h
-main.o: main.c scrot.h getopt.h config.h structs.h debug.h options.h
-options.o: options.c scrot.h getopt.h config.h structs.h debug.h \
+imlib.o: imlib.c scrot.h config.h structs.h debug.h options.h
+main.o: main.c scrot.h config.h structs.h debug.h options.h
+options.o: options.c scrot.h config.h structs.h debug.h \
 	options.h
 
 info-am:
