aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cc/cpp/Makefile
blob: 013cdb8c794e046a93b32af4a612742053c5e9db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#	From: @(#)Makefile	6.4 (Berkeley) 2/21/91
#	$Id: Makefile,v 1.5 1993/08/28 10:29:09 rgrimes Exp $

PROG=		gcpp
BINDIR=		/usr/libexec
SRCS=		cccp.c cexp.y version.c
MAN1=		gcpp.1
CFLAGS+=	-I. -I$(.CURDIR) -I$(.CURDIR)/../lib \
		-DGCC_INCLUDE_DIR=\"\" \
		-DGPLUSPLUS_INCLUDE_DIR=\"/usr/include/g++\"
YFLAGS=

MLINKS=	gcpp.1 cpp.1

.PATH:		$(.CURDIR)/../lib

afterinstall:
	install -c -o $(BINOWN) -g $(BINGRP) -m $(BINMODE) \
		$(.CURDIR)/usr.bin.cpp.sh $(DESTDIR)/usr/bin/gcpp
	@/bin/rm -rf $(DESTDIR)/usr/bin/cpp
	@cd $(DESTDIR)/usr/bin; ln -s gcpp cpp
	@echo $(DESTDIR)/usr/bin/cpp -\> $(DESTDIR)/usr/bin/gcpp
	@/bin/rm -rf $(DESTDIR)$(BINDIR)/cpp
	@cd $(DESTDIR)$(BINDIR); ln -s gcpp cpp
	@echo $(DESTDIR)$(BINDIR)/cpp -\> $(DESTDIR)$(BINDIR)/gcpp

.include <bsd.prog.mk>