freebsd-ports/sysutils/idled/files/utmpx-Makefile
Wen Heping d2253bb205 - Convert from utmp.h to utmpx.h
PR:		ports/143238
Submitted by:	Rob Farmer <rfarmer@predatorlabs.net>
2010-02-02 06:03:37 +00:00

105 lines
2.7 KiB
Text

--- Makefile.orig 1996-05-16 15:05:28.000000000 -0700
+++ Makefile 2010-01-25 16:08:20.000000000 -0800
@@ -2,8 +2,8 @@
#
# C compiler flags
-CC = cc
-RM = rm
+CC ?= cc
+RM ?= rm
INCLUDE =
######################################################################
@@ -166,26 +166,26 @@
# You will need to delete parse.c before compiling! You can either
# do so by hand, or do a 'make clean' followed by the normal 'make'.
#DEFS += -O -m486
-#DEFS += -DBSD_OS2 -DHAVE_SETSID -DHAVE_YYRESTART -DPS_HACK
+DEFS += -DBSD_OS2 -DHAVE_SETSID -DHAVE_YYRESTART -DPS_HACK -DHAVE_UTMPX -DSYSV
#DEFS += -DPROC_SEARCH_1
#SPECLIBS = -lkvm
-#INSTTYPE = install1a
+INSTTYPE = install1a
#
-#DEST = /usr/local/libexec
-#CFDEST = /usr/local/libexec
-#MDEST = /usr/local/man
-#LOGDEST = /var/log
+DEST = ${PREFIX}/libexec
+CFDEST = ${PREFIX}/etc
+MDEST = ${PREFIX}/man
+LOGDEST = /var/log
#
-#OWNER = root
-#CFOWNER = root
-#MOWNER = man
+OWNER = root
+CFOWNER = root
+MOWNER = man
#
-#GROUP = daemon
-#CFGROUP = daemon
+GROUP = daemon
+CFGROUP = daemon
#
-#MODE = 750
-#CFMODE = 664
-#MMODE = 444
+MODE = 750
+CFMODE = 644
+MMODE = 444
######################################################################
######################################################################
@@ -215,25 +215,25 @@
# SVR4 -- Solaris 2.x
# Use install3 for /usr/sbin/install
# and install1 for /usr/ucb/install
-DEFS += -DSYSV -DHAVE_PROC_FS -DUTMPPID -DHAVE_SETSID -DHAVE_UTMPX -DUTMPHOST -DRUDEKILL
-SPECLIBS =
-INSTTYPE = install3
-
-DEST = /usr/local/bin
-CFDEST = /usr/local/lib
-MDEST = /usr/local/man
-LOGDEST = /var/log
+#DEFS += -DSYSV -DHAVE_PROC_FS -DUTMPPID -DHAVE_SETSID -DHAVE_UTMPX -DUTMPHOST -DRUDEKILL
+#SPECLIBS =
+#INSTTYPE = install3
-OWNER = root
-CFOWNER = root
-MOWNER = root
+#DEST = /usr/local/bin
+#CFDEST = /usr/local/lib
+#MDEST = /usr/local/man
+#LOGDEST = /var/log
+
+#OWNER = root
+#CFOWNER = root
+#MOWNER = root
-GROUP = root
-CFGROUP = root
+#GROUP = root
+#CFGROUP = root
-MODE = 750
-CFMODE = 664
-MMODE = 644
+#MODE = 750
+#CFMODE = 664
+#MMODE = 644
######################################################################
######################################################################
@@ -428,7 +428,7 @@
# HERE are the big CFLAGS
# Add -g if you want debugging
# Add -O or whatever variant for optimization
-CFLAGS = ${DEFS} ${DEBUG} -DCONFIG=\"${CONFIG}\" -DLOGFILE=\"${LOGFILE}\" ${INCLUDE}
+CFLAGS+= ${DEFS} ${DEBUG} -DCONFIG=\"${CONFIG}\" -DLOGFILE=\"${LOGFILE}\" ${INCLUDE}
# For HP's ANSI C compiler (use -g instead of +O3 for debugging)
# CFLAGS = +O3 -Aa -D_HPUX_SOURCE ${DEFS} ${DEBUG} -DCONFIG=\"${CONFIG}\" -DLOGFILE=\"${LOGFILE}\" ${INCLUDE}