63d91bee74
premier dockable radio tuner Submitted by: Vladimir Popov <pva48@mail.ru>
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
$OpenBSD: patch-Makefile,v 1.1.1.1 2001/03/16 15:30:48 wilfried Exp $
|
|
--- Makefile.orig Mon Mar 1 12:01:17 1999
|
|
+++ Makefile Fri Mar 16 16:26:23 2001
|
|
@@ -1,21 +1,22 @@
|
|
-RADIOCARD = ZOLTRIX # Can be RADIOTRACK, ZOLTRIX, KERNEL
|
|
-INCDIR = -I/usr/X11R6/include
|
|
-LIBDIR = -L/usr/X11R6/lib
|
|
-LIBS = -lXpm -lXext -lX11
|
|
+CFLAGS+= -I${X11BASE}/include
|
|
+LIBDIR = -L${X11BASE}/lib
|
|
+LIBS = -lXpm -lXext -lX11 -li386 # For OpenBSD/i386
|
|
OBJS = src/wmtune.o \
|
|
src/wmgeneral/wmgeneral.o \
|
|
|
|
-.c.o:
|
|
- cc -c -O2 -Wall -D$(shell echo `uname -s`) $< -o $*.o $(INCDIR) -D$(RADIOCARD)
|
|
-
|
|
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 \
|