1# |
2# $Id: Makefile,v 1.7 1998/03/06 13:34:36 bde Exp $ |
3# 4 5# 6# This could probably be merged with ../cc_int/Makefile, but bsd.lib.mk 7# is such a !@#!*#% nightmare because of how it reprograms the dependencies, 8# suffix rules, SRCS, etc. It's easiest to cheat by using bsd.prog.mk and 9# SRCS to get dependencies. 10# --- 100 unchanged lines hidden (view full) --- 111SRCS+= objc-parse.c objc-parse.h 112CLEANFILES+= objc-parse.y # insurance 113 114#----------------------------------------------------------------------- 115# C++ parser done in its own makefile 116#----------------------------------------------------------------------- 117# CPP parser done in its own makefile 118#----------------------------------------------------------------------- |
119# the host/target compiler config. 120 121COMMONHDRS= config.h hconfig.h tconfig.h tm.h options.h specs.h 122 |
123${COMMONHDRS}: |
124 echo '#include "${MACHINE_ARCH}/freebsd.h"' > tm.h 125 echo '#include "${MACHINE_ARCH}/xm-freebsd.h"' > config.h 126 echo '#include "${MACHINE_ARCH}/xm-freebsd.h"' > hconfig.h 127 echo '#include "${MACHINE_ARCH}/xm-freebsd.h"' > tconfig.h 128 echo '#include "cp/lang-options.h"' > options.h 129 echo '#include "cp/lang-specs.h"' > specs.h 130 echo '#include "f2c-specs.h"' >> specs.h |
131 |
132SRCS+= ${COMMONHDRS} 133CLEANFILES+= elf aout 134 |
135#----------------------------------------------------------------------- 136# Everything in ${SRCS} is generated 137CLEANFILES+= ${SRCS} 138 139#----------------------------------------------------------------------- 140all: ${COMMONHDRS} ${SRCS} 141 142#----------------------------------------------------------------------- 143beforedepend: ${COMMONHDRS} 144 |
145# We kept ${LOCOBJS} separate from ${OBJS} because adding all the 146# objects to ${OBJS} would give too many (cyclic) dependencies. 147# Add just enough dependencies for `make -j 1000' to work. 148${LOCOBJS}: ${COMMONHDRS} 149genattrtab.o: insn-config.h 150genextract.o: insn-config.h 151 152.include <bsd.prog.mk> |