--- Makefile.in.orig	Thu Nov 16 17:12:29 2000
+++ Makefile.in	Tue Feb 20 02:03:56 2001
@@ -13,7 +13,7 @@
 DEF_MIXER = /dev/mixer
 VERSION	= 0.9.4
 
-CFLAGS	= -O -Wall @CFLAGS@ @X_CFLAGS@ -DDEFAULT_MIXER=\"$(DEF_MIXER)\" \
+CFLAGS	= @CFLAGS@ @X_CFLAGS@ -DDEFAULT_MIXER=\"$(DEF_MIXER)\" \
 			-DOSS -I$(top_srcdir) -I$(top_srcdir)/icons \
 			-DVERSION=\"$(VERSION)\"
 LDFLAGS = @LDFLAGS@
@@ -25,7 +25,7 @@
 OBJS	= main.o mixer.o gui_xaw.o chglbl.o scf.o
 G_OBJS	= main.o mixer.o gui_gtk.o scf.o
 
-default:	$(PROGS) README
+all:	$(PROGS)
 
 gui_xaw.o:	fallback.h
 
@@ -33,27 +33,27 @@
 	mkfb.pl < XMixer.ad > fallback.h
 
 gui_gtk.o: gui_gtk.c
-	$(CC) $(CFLAGS) $(INCS) `gtk-config --cflags` -c $<
+	$(CC) $(CFLAGS) $(INCS) `$(GTK_CONFIG) --cflags` -c $<
 
-%.o:	%.c
+.c.o:
 	$(CC) $(CFLAGS) $(INCS) -c $<
 
 xmixer: Xw/libXw.a $(OBJS)
 	$(LD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
 
 xgmixer: $(G_OBJS)
-	$(LD) $(LDFLAGS) -o $@ $(G_OBJS) `gtk-config --libs`
+	$(LD) $(LDFLAGS) -o $@ $(G_OBJS) `$(GTK_CONFIG) --libs`
 
 Xw/libXw.a:
-	cd Xw && make libXw.a
+	cd Xw && $(MAKE) libXw.a
 
 README: index.html
 	lynx -dump http://www/~rasca/xmixer/index.html | sed "s%//www/%//home.pages.de/%" > README
 
 install: $(PROGS)
-	install -o bin xmixer $(bindir)
-	install xmixer.man $(mandir)/xmixer.1
-	install -o bin xgmixer $(bindir)
+	${BSD_INSTALL_PROGRAM} xmixer $(bindir)
+	${BSD_INSTALL_MAN} xmixer.man $(mandir)/xmixer.1
+	${BSD_INSTALL_PROGRAM} xgmixer $(bindir)
 
 install.lib: libmixer.a
 	install libsmixer.a $(LIBDIR)
