mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-30 21:49:25 +00:00
bda902cfce
Also assure that CFLAGS is respected and remove not used mandatory aout bits while I'm here. Submitted by: bento
51 lines
1.2 KiB
Plaintext
51 lines
1.2 KiB
Plaintext
--- Makefile.orig Thu Jun 18 13:44:09 1998
|
|
+++ Makefile Tue May 30 10:05:47 2000
|
|
@@ -1,17 +1,18 @@
|
|
OBJ = libapm.o bios.o smi.o
|
|
PROGRAM = libapm
|
|
-OWNER = -g root
|
|
-GROUP = -o root
|
|
-MODE = -m 755
|
|
-#MODE = -m 4755
|
|
-BINDIR = /usr/local/bin
|
|
-MANSECT = l
|
|
-MANDIR = /usr/local/man/ja_JP.ujis
|
|
-MANLANG = j
|
|
-#MANDIR = /usr/local/man
|
|
-#MANLANG = e
|
|
+PROGRAM_NAME = libretto-config
|
|
+OWNER = -o root
|
|
+GROUP = -g operator
|
|
+MODE = -m 4550
|
|
+BINDIR = /usr/local/sbin
|
|
+MANSECT = 8
|
|
+MANDIR = /usr/local/man
|
|
+MANLANG = e
|
|
|
|
-CFLAGS = -O2 #-DLIBRETTO -DDEBUG
|
|
+#DEFS= -DLIBRETTO -DDEBUG
|
|
+CFLAGS += $(DEFS)
|
|
+
|
|
+all: $(PROGRAM)
|
|
|
|
$(PROGRAM): $(OBJ)
|
|
$(CC) $(CFLAGS) -o $(PROGRAM) $(OBJ)
|
|
@@ -19,12 +20,12 @@
|
|
clean:
|
|
/bin/rm -f $(OBJ) $(PROGRAM) *~
|
|
|
|
-install: install.bin
|
|
+install: install.bin install.man
|
|
|
|
install.bin:
|
|
- install -c -s $(OWNER) $(GROUP) $(MODE) $(PROGRAM) $(BINDIR)
|
|
+ install -c -s $(OWNER) $(GROUP) $(MODE) $(PROGRAM) $(BINDIR)/$(PROGRAM_NAME)
|
|
|
|
install.man:
|
|
- - mkdir $(MANDIR)/man$(MANSECT)
|
|
- install -c -m 644 libapm-${MANLANG}.man $(MANDIR)/man$(MANSECT)/libapm.$(MANSECT)
|
|
-
|
|
+ ${BSD_INSTALL_MAN} libapm-${MANLANG}.man $(MANDIR)/man$(MANSECT)/$(PROGRAM_NAME).$(MANSECT)
|
|
+
|
|
+libapm.o: libapm.h libapm.c
|