1995-12-01 20:58:53 +03:00
|
|
|
# from: @(#)Makefile 6.4 (Berkeley) 2/21/91
|
1996-05-11 15:37:59 +04:00
|
|
|
# $NetBSD: Makefile,v 1.2 1996/05/11 11:38:06 mycroft Exp $
|
1995-12-01 20:58:53 +03:00
|
|
|
|
|
|
|
PROG= cpp
|
|
|
|
BINDIR= /usr/libexec
|
1996-05-11 15:37:59 +04:00
|
|
|
SRCS= cccp.c obstack.c cexp.c version.c
|
1995-12-01 20:58:53 +03:00
|
|
|
CFLAGS+= -I. -I$(.CURDIR) -I$(.CURDIR)/../common -I$(.CURDIR)/../arch \
|
|
|
|
-I$(.CURDIR)/../arch/$(MACHINE_ARCH) \
|
|
|
|
-DGCC_INCLUDE_DIR=\"\" \
|
|
|
|
-DTOOL_INCLUDE_DIR=\"\" \
|
|
|
|
-DGPLUSPLUS_INCLUDE_DIR=\"/usr/include/g++\"
|
|
|
|
LDADD+= -lgnumalloc
|
|
|
|
DPADD+= /usr/lib/libgnumalloc.a
|
|
|
|
YFLAGS=
|
|
|
|
|
|
|
|
MLINKS= cpp.1 cccp.1 cpp.1 gcpp.1
|
|
|
|
|
1996-05-11 15:37:59 +04:00
|
|
|
CLEANFILES+= cexp.c
|
|
|
|
|
1995-12-01 20:58:53 +03:00
|
|
|
.PATH: $(.CURDIR)/../common
|
|
|
|
|
|
|
|
afterinstall:
|
|
|
|
install -c -o $(BINOWN) -g $(BINGRP) -m $(BINMODE) \
|
|
|
|
$(.CURDIR)/usr.bin.cpp.sh $(DESTDIR)/usr/bin/cpp
|
|
|
|
@/bin/rm -rf $(DESTDIR)/usr/bin/gcpp
|
|
|
|
@ln $(DESTDIR)/usr/bin/cpp $(DESTDIR)/usr/bin/gcpp
|
|
|
|
@echo $(DESTDIR)/usr/bin/gcpp -\> $(DESTDIR)/usr/bin/cpp
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|