Stop using CPPFLAGS

This commit is contained in:
Roy Marples 2008-01-07 09:39:44 +00:00
parent 18adcb1ee8
commit 74e0e58b89
8 changed files with 50 additions and 50 deletions

View File

@ -30,7 +30,7 @@ LIBMODE?= 0444
.SUFFIXES: .So
.c.So:
${CC} ${PICFLAG} -DPIC ${CFLAGS} ${CPPFLAGS} -c $< -o $@
${CC} ${PICFLAG} -DPIC ${CFLAGS} -c $< -o $@
all: ${_LIBS}

View File

@ -3,11 +3,12 @@ include $(TOPDIR)/os.mk
LIB= rc
SHLIB_MAJOR= 1
SRCS= librc.c librc-daemon.c librc-depend.c librc-misc.c librc-strlist.c
SRCS= librc.c librc-daemon.c librc-depend.c librc-misc.c \
librc-strlist.c
INCS= rc.h
VERSION_MAP= rc.map
CPPFLAGS+= -DLIB=\"${LIBNAME}\"
CFLAGS+= -DLIB=\"${LIBNAME}\"
LDADD+= ${LIBKVM}
SHLIBDIR= /${LIBNAME}

View File

@ -1,3 +1,3 @@
LIBTERMCAP?= -lncurses
CPPFLAGS+= -DHAVE_TERMCAP
CFLAGS+= -DHAVE_TERMCAP
LDADD+= ${LIBTERMCAP}

View File

@ -13,7 +13,7 @@ RC_LIB= /$(LIB)/rc
_DEF_SH= case `uname -s` in Linux) echo "-D_XOPEN_SOURCE=600 -D_BSD_SOURCE";; *) echo;; esac
_DEF!= $(_DEF_SH)
CPPFLAGS+= $(_DEF)$(shell $(_DEF_SH))
CFLAGS+= $(_DEF)$(shell $(_DEF_SH))
_LIBDL_SH= case `uname -s` in Linux) echo "-Wl,-Bdynamic -ldl";; *) echo;; esac
_LIBDL!= $(_LIBDL_SH)

View File

@ -1,5 +1,5 @@
LIBPAM?= -lpam
CPPFLAGS+= -DHAVE_PAM
CFLAGS+= -DHAVE_PAM
LDADD+= ${LIBPAM}
PAMDIR?= /etc/pam.d

View File

@ -4,7 +4,6 @@
# Copyright 2008 Roy Marples
BINDIR?= /sbin
OBJS+= ${SRCS:.c=.o}
INSTALL?= install
@ -12,7 +11,7 @@ INSTALL?= install
all: ${PROG}
${PROG}: ${SCRIPTS} ${OBJS}
${CC} ${CFLAGS} ${LDFLAGS} ${PROGLDFLAGS} ${CPPFLAGS} -o $@ ${OBJS} ${LDADD}
${CC} ${CFLAGS} ${LDFLAGS} ${PROGLDFLAGS} -o $@ ${OBJS} ${LDADD}
clean:
rm -f ${OBJS} ${PROG} ${CLEANFILES}

View File

@ -10,7 +10,7 @@ TOPDIR= ..
LDFLAGS+= -L$(TOPDIR)/librc -L$(TOPDIR)/libeinfo
LDADD+= -lutil -lrc -leinfo
CPPFLAGS+= -I$(TOPDIR) -I$(TOPDIR)/librc -I$(TOPDIR)/libeinfo
CFLAGS+= -I$(TOPDIR) -I$(TOPDIR)/librc -I$(TOPDIR)/libeinfo
BINDIR?= /sbin
@ -34,7 +34,7 @@ RC_SBINLINKS= mark_service_starting mark_service_started \
rc-abort
include $(TOPDIR)/os.mk
CPPFLAGS+= -DLIB=\"$(LIBNAME)\"
CFLAGS+= -DLIB=\"$(LIBNAME)\"
include $(TOPDIR)/cc.mk
include $(TOPDIR)/prog.mk

View File

@ -1,3 +1,3 @@
LIBTERMCAP?= -ltermcap
CPPFLAGS+= -DHAVE_TERMCAP
CFLAGS+= -DHAVE_TERMCAP
LDADD+= ${LIBTERMCAP}