NetBSD/gnu/usr.bin/gcc/cpp/Makefile

30 lines
848 B
Makefile
Raw Normal View History

# 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 $
PROG= cpp
BINDIR= /usr/libexec
1996-05-11 15:37:59 +04:00
SRCS= cccp.c obstack.c cexp.c version.c
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
.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>