Deleted Added
sdiff udiff text old ( 34112 ) new ( 34229 )
full compact
1#
2# $Id: Makefile,v 1.6 1998/01/25 09:47:46 jb 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# Everything in ${SRCS} is generated
120CLEANFILES+= ${SRCS}
121
122#-----------------------------------------------------------------------
123all: ${BINFORMAT} ${SRCS}
124
125#-----------------------------------------------------------------------
126beforedepend: ${BINFORMAT}
127
128#-----------------------------------------------------------------------
129# the host/target compiler config.
130
131COMMONHDRS= config.h hconfig.h tconfig.h tm.h options.h specs.h
132
133${COMMONHDRS}: ${BINFORMAT}
134
135aout:
136 @rm -f elf
137 echo '#include "${MACHINE_ARCH}/freebsd.h"' > tm.h
138 echo '#include "${MACHINE_ARCH}/xm-freebsd.h"' > config.h
139 echo '#include "${MACHINE_ARCH}/xm-freebsd.h"' > hconfig.h
140 echo '#include "${MACHINE_ARCH}/xm-freebsd.h"' > tconfig.h
141 echo '#include "cp/lang-options.h"' > options.h
142 echo '#include "cp/lang-specs.h"' > specs.h
143 echo '#include "f2c-specs.h"' >> specs.h
144 @touch aout
145
146elf:
147 @rm -f aout
148 echo '#include "${MACHINE_ARCH}/freebsd-elf.h"' > tm.h
149 echo '#include "${MACHINE_ARCH}/xm-freebsd.h"' > config.h
150 echo '#include "${MACHINE_ARCH}/xm-freebsd.h"' > hconfig.h
151 echo '#include "${MACHINE_ARCH}/xm-freebsd.h"' > tconfig.h
152 echo '#include "cp/lang-options.h"' > options.h
153 echo '#include "cp/lang-specs.h"' > specs.h
154 echo '#include "f2c-specs.h"' >> specs.h
155 @touch elf
156
157SRCS+= ${COMMONHDRS}
158CLEANFILES+= elf aout
159
160# We kept ${LOCOBJS} separate from ${OBJS} because adding all the
161# objects to ${OBJS} would give too many (cyclic) dependencies.
162# Add just enough dependencies for `make -j 1000' to work.
163${LOCOBJS}: ${COMMONHDRS}
164genattrtab.o: insn-config.h
165genextract.o: insn-config.h
166
167.include <bsd.prog.mk>