e5fea06b9f
which was commited into -current on December 5th) o Remove the aztech and radiotrack flavors since both are supported by OpenBSD drivers o Simplify config file (now there's no need to specify number of presets) o Small fixes like strcpy -> strlcpy etc Submitted by maintainer Vladimir Popov <pva48@mail.ru>.
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
$OpenBSD: patch-Makefile,v 1.2 2001/12/20 21:18:02 naddy Exp $
|
|
--- Makefile.orig Mon Mar 1 16:01:17 1999
|
|
+++ Makefile Fri Dec 7 14:49:42 2001
|
|
@@ -1,24 +1,21 @@
|
|
-RADIOCARD = ZOLTRIX # Can be RADIOTRACK, ZOLTRIX, KERNEL
|
|
-INCDIR = -I/usr/X11R6/include
|
|
-LIBDIR = -L/usr/X11R6/lib
|
|
+CFLAGS+= -I${X11BASE}/include
|
|
+LIBDIR = -L${X11BASE}/lib
|
|
LIBS = -lXpm -lXext -lX11
|
|
-OBJS = src/wmtune.o \
|
|
- src/wmgeneral/wmgeneral.o \
|
|
-
|
|
-.c.o:
|
|
- cc -c -O2 -Wall -D$(shell echo `uname -s`) $< -o $*.o $(INCDIR) -D$(RADIOCARD)
|
|
+OBJS = src/wmtune.o src/wmgeneral/wmgeneral.o
|
|
|
|
all: wmtune
|
|
|
|
+.c.o:
|
|
+ cc $(CFLAGS) -c $< -o $@
|
|
+
|
|
wmtune: $(OBJS)
|
|
- cc -o wmtune $^ $(LIBDIR) $(LIBS)
|
|
+ cc -o wmtune $(OBJS) $(LIBDIR) $(LIBS)
|
|
|
|
install:: all
|
|
- install -s -m 4755 -o root wmtune /usr/X11R6/bin
|
|
- install -m 0644 -o root -g root sample.wmtunerc /etc/wmtunerc
|
|
+ ${BSD_INSTALL_PROGRAM} wmtune ${PREFIX}/bin
|
|
+ ${BSD_INSTALL_MAN} wmtune.1 ${PREFIX}/man/man1
|
|
+ ${BSD_INSTALL_DATA_DIR} ${PREFIX}/share/examples/wmtune
|
|
+ ${BSD_INSTALL_DATA} sample.wmtunerc ${PREFIX}/share/examples/wmtune
|
|
|
|
clean:
|
|
- for i in $(OBJS) ; do \
|
|
- rm -f $$i; \
|
|
- done
|
|
- rm -f wmtune
|
|
+ rm -f $(OBJS) wmtune
|