ae1b55cbb8
and ossaudio libraries are handled through their buildlink3.mk files.
42 lines
1.1 KiB
Text
42 lines
1.1 KiB
Text
$NetBSD: patch-ac,v 1.6 2004/03/31 10:40:29 minskim Exp $
|
|
|
|
--- Makefile.orig Thu Sep 19 19:18:29 1996
|
|
+++ Makefile Sat Sep 30 16:51:14 2000
|
|
@@ -6,11 +6,11 @@
|
|
|
|
CC = gcc
|
|
CFLAGS = -Wall -O2
|
|
-LIBS = -lncurses
|
|
+LIBS = -lcurses ${LIBOSSAUDIO}
|
|
INSTALL = install
|
|
-BINDIR = /usr/local/bin
|
|
+BINDIR = ${PREFIX}/bin
|
|
MANFILE= cam.1
|
|
-MANDIR = /usr/man/man1
|
|
+MANDIR = ${PREFIX}/man/man1
|
|
EFILE = cam
|
|
XEFILE = xcam
|
|
OBJS = cam.o screens.o sounds.o
|
|
@@ -24,7 +24,7 @@
|
|
@echo ""
|
|
@echo " linking ..."
|
|
@echo ""
|
|
- $(CC) -o $(EFILE) $(OBJS) $(LIBS)
|
|
+ $(CC) $(LDFLAGS) -o $(EFILE) $(OBJS) $(LIBS)
|
|
@echo ""
|
|
|
|
###############################################################################
|
|
@@ -68,11 +68,8 @@
|
|
install:$(EFILE) $(MANFILE)
|
|
@echo ""
|
|
@echo "installing $(EFILE) in directory $(BINDIR)"
|
|
- @$(INSTALL) -m 755 -o root -g root $(EFILE) $(BINDIR)
|
|
- @$(INSTALL) -m 755 -o root -g root $(XEFILE) $(BINDIR)
|
|
+ @$(BSD_INSTALL_PROGRAM) $(EFILE) $(BINDIR)
|
|
@echo ""
|
|
@echo "installing manpages for cam"
|
|
- @$(INSTALL) -m 644 -o root -g root $(MANFILE) $(MANDIR)
|
|
- @echo ""
|
|
- @. installvgafont.sh
|
|
+ @$(BSD_INSTALL_DATA) $(MANFILE) $(MANDIR)
|
|
@echo ""
|