[Midnightbsd-cvs] src: Makefile.inc: add Makefile.inc
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Wed May 14 00:26:47 EDT 2008
Log Message:
-----------
add Makefile.inc
Added Files:
-----------
src/usr.bin/pcc/ccom:
Makefile.inc (r1.1)
-------------- next part --------------
--- /dev/null
+++ usr.bin/pcc/ccom/Makefile.inc
@@ -0,0 +1,47 @@
+# $MidnightBSD: src/usr.bin/pcc/ccom/Makefile.inc,v 1.1 2008/05/14 04:26:47 laffer1 Exp $
+# $OpenBSD: Makefile.inc,v 1.3 2007/10/15 01:05:25 deraadt Exp $
+#
+# Makefile for the ccom part of pcc.
+#
+
+PROG= ccom_${TARGMACH}
+MAN= ccom.1
+
+PREFIX= /usr/local
+BINDIR= ${PREFIX}/libexec
+MANDIR= ${PREFIX}/man/man
+TARGOS= openbsd
+CLEANFILES= external.h external.c mkext
+
+CFLAGS+= -DPCC_DEBUG -DGCC_COMPAT
+CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror
+CFLAGS+= -DLIBEXECDIR=\"${PREFIX}/libexec\"
+CPPFLAGS+= -I. -I${.CURDIR}/.. -I${.CURDIR} -I${.CURDIR}/../../mip
+CPPFLAGS+= -I${.CURDIR}/../../${TARGMACH}
+CPPFLAGS+= -I${.CURDIR}/../..
+
+.PATH: ${.CURDIR}/../../${TARGMACH}
+.PATH: ${.CURDIR}/../../mip
+.PATH: ${.CURDIR}/..
+
+SRCS=optim.c pftn.c scan.l trees.c cgram.y inline.c symtabs.c \
+ gcc_compat.c init.c local.c code.c stabs.c match.c reader.c optim2.c \
+ regs.c local2.c order.c table.c common.c main.c external.c
+
+cgram.c: cgram.y
+ $(YACC) $(YFLAGS) -d $<
+ mv y.tab.c cgram.c
+ mv y.tab.h cgram.h
+
+mkext: mkext.c table.c common.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -DMKEXT -o mkext \
+ ${.CURDIR}/../../mip/mkext.c ${.CURDIR}/../../${TARGMACH}/table.c \
+ ${.CURDIR}/../../mip/common.c
+
+external.h external.c: mkext
+ ./mkext
+
+pftn.o: cgram.c
+
+cleandepend:
+ rm -f .depend ${.CURDIR}/tags cgram.h
More information about the Midnightbsd-cvs
mailing list