Makefile (34112) | Makefile (34229) |
---|---|
1# | 1# |
2# $Id: Makefile,v 1.6 1998/01/25 09:47:46 jb Exp $ | 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#----------------------------------------------------------------------- | 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 | 119# the host/target compiler config. 120 121COMMONHDRS= config.h hconfig.h tconfig.h tm.h options.h specs.h 122 |
133${COMMONHDRS}: ${BINFORMAT} 134 135aout: 136 @rm -f elf | 123${COMMONHDRS}: |
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 | 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 |
144 @touch aout | |
145 | 131 |
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 | 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 |
|
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> | 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> |