Makefile revision 256281
1# $FreeBSD: stable/10/gnu/usr.bin/cc/cc_tools/Makefile 245539 2013-01-17 05:56:28Z andrew $ 2 3.include <bsd.own.mk> 4 5CFLAGS+= -I. 6 7.include "../Makefile.inc" 8 9CFLAGS+= -g 10CFLAGS+= -DGENERATOR_FILE -DHAVE_CONFIG_H 11 12# Override LIBIBERTY set by Makefile.inc, We use our own for 13# build tools. 14LIBIBERTY= libiberty.a 15 16.PATH: ${GCCDIR} ${GCCLIB}/libiberty 17 18#----------------------------------------------------------------------- 19# Determine content of variables used by the target/host config files 20 21# 22# The list of headers to go into tm.h 23# 24TARGET_INC+= options.h 25.if ${TARGET_CPUARCH} == "amd64" 26TARGET_INC+= i386/biarch64.h 27.endif 28.if ${TARGET_CPUARCH} != "arm" 29TARGET_INC+= ${GCC_CPU}/${GCC_CPU}.h 30.endif 31.if ${TARGET_CPUARCH} == "i386" || ${TARGET_CPUARCH} == "amd64" 32TARGET_INC+= ${GCC_CPU}/unix.h 33TARGET_INC+= ${GCC_CPU}/att.h 34.endif 35TARGET_INC+= dbxelf.h 36TARGET_INC+= elfos-undef.h 37TARGET_INC+= elfos.h 38TARGET_INC+= freebsd-native.h 39TARGET_INC+= freebsd-spec.h 40TARGET_INC+= freebsd.h 41.if ${TARGET_CPUARCH} != "i386" && ${TARGET_CPUARCH} != "amd64" 42. if exists(${GCCDIR}/config/${GCC_CPU}/sysv4.h) 43TARGET_INC+= ${GCC_CPU}/sysv4.h 44. endif 45.endif 46.if ${TARGET_CPUARCH} == "amd64" 47TARGET_INC+= ${GCC_CPU}/x86-64.h 48.endif 49.if ${TARGET_CPUARCH} == "arm" || ${TARGET_CPUARCH} == "mips" 50TARGET_INC+= ${GCC_CPU}/elf.h 51.endif 52.if ${TARGET_CPUARCH} == "arm" 53TARGET_INC+= ${GCC_CPU}/aout.h 54.if ${MK_ARM_EABI} != "no" 55TARGET_INC+= ${GCC_CPU}/bpabi.h 56.endif 57.endif 58.if ${TARGET_ARCH} == "powerpc64" 59TARGET_INC+= ${GCC_CPU}/biarch64.h 60TARGET_INC+= ${GCC_CPU}/default64.h 61.endif 62TARGET_INC+= ${GCC_CPU}/freebsd.h 63.if ${TARGET_CPUARCH} == "amd64" 64TARGET_INC+= ${GCC_CPU}/freebsd64.h 65.endif 66.if ${TARGET_CPUARCH} == "arm" 67TARGET_INC+= ${GCC_CPU}/arm.h 68.endif 69TARGET_INC+= defaults.h 70 71.for H in ${TARGET_INC} 72.for D in ${GCCDIR}/config ${GCCDIR} ${.CURDIR} 73.if exists($D/$H) 74TARGET_INC_FILES+= $D/$H 75.endif 76.endfor 77.endfor 78 79# 80# gtyp includes. 81# 82srcdir= ${GCCDIR} 83CPPLIB_H= ${GCCLIB}/libcpp/include/line-map.h \ 84 ${GCCLIB}/libcpp/include/cpplib.h 85SYMTAB_H= ${GCCLIB}/libcpp/include/symtab.h 86CPP_ID_DATA_H= ${CPPLIB_H} ${GCCLIB}/libcpp/include/cpp-id-data.h 87HASHTAB_H= ${GCCLIB}/include/hashtab.h 88SPLAY_TREE_H= ${GCCLIB}/include/splay-tree.h 89out_file= ${srcdir}/config/${GCC_CPU}/${GCC_CPU}.c 90tm_file_list= ${TARGET_INC_FILES} 91host_xm_file_list= ${.CURDIR}/auto-host.h ${GCCLIB}/include/ansidecl.h 92GTFILES_SRCDIR= ${srcdir} 93 94# Copied unchanged from gcc/Makefile.in 95GTFILES = $(srcdir)/input.h $(srcdir)/coretypes.h \ 96 $(CPP_ID_DATA_H) $(host_xm_file_list) \ 97 $(tm_file_list) $(HASHTAB_H) $(SPLAY_TREE_H) $(srcdir)/bitmap.h \ 98 $(srcdir)/coverage.c $(srcdir)/rtl.h \ 99 $(srcdir)/optabs.h $(srcdir)/tree.h $(srcdir)/function.h $(srcdir)/libfuncs.h $(SYMTAB_H) \ 100 $(srcdir)/real.h $(srcdir)/varray.h $(srcdir)/insn-addr.h $(srcdir)/hwint.h \ 101 $(srcdir)/ipa-reference.h $(srcdir)/output.h \ 102 $(srcdir)/cselib.h $(srcdir)/basic-block.h $(srcdir)/cgraph.h \ 103 $(srcdir)/c-common.h $(srcdir)/c-tree.h $(srcdir)/reload.h \ 104 $(srcdir)/alias.c $(srcdir)/bitmap.c $(srcdir)/cselib.c $(srcdir)/cgraph.c \ 105 $(srcdir)/ipa-prop.c $(srcdir)/ipa-cp.c $(srcdir)/ipa-inline.c \ 106 $(srcdir)/dbxout.c $(srcdir)/dwarf2out.c $(srcdir)/dwarf2asm.c \ 107 $(srcdir)/dojump.c $(srcdir)/tree-profile.c \ 108 $(srcdir)/emit-rtl.c $(srcdir)/except.c $(srcdir)/explow.c $(srcdir)/expr.c \ 109 $(srcdir)/function.c $(srcdir)/except.h \ 110 $(srcdir)/gcse.c $(srcdir)/integrate.c $(srcdir)/lists.c $(srcdir)/optabs.c \ 111 $(srcdir)/profile.c $(srcdir)/regclass.c \ 112 $(srcdir)/reg-stack.c $(srcdir)/cfglayout.c \ 113 $(srcdir)/sdbout.c $(srcdir)/stor-layout.c \ 114 $(srcdir)/stringpool.c $(srcdir)/tree.c $(srcdir)/varasm.c \ 115 $(srcdir)/tree-mudflap.c $(srcdir)/tree-flow.h \ 116 $(srcdir)/c-objc-common.c $(srcdir)/c-common.c $(srcdir)/c-parser.c \ 117 $(srcdir)/tree-ssanames.c $(srcdir)/tree-eh.c $(srcdir)/tree-ssa-address.c \ 118 $(srcdir)/tree-phinodes.c $(srcdir)/tree-cfg.c \ 119 $(srcdir)/tree-dfa.c $(srcdir)/tree-ssa-propagate.c \ 120 $(srcdir)/tree-iterator.c $(srcdir)/gimplify.c \ 121 $(srcdir)/tree-chrec.h $(srcdir)/tree-vect-generic.c \ 122 $(srcdir)/tree-ssa-operands.h $(srcdir)/tree-ssa-operands.c \ 123 $(srcdir)/tree-profile.c $(srcdir)/tree-nested.c \ 124 $(srcdir)/ipa-reference.c $(srcdir)/tree-ssa-structalias.h \ 125 $(srcdir)/tree-ssa-structalias.c \ 126 $(srcdir)/c-pragma.h $(srcdir)/omp-low.c \ 127 $(srcdir)/targhooks.c $(srcdir)/cgraphunit.c $(out_file) \ 128 129# The list of frontend directories to look into 130GTFILES_LANG_DIR_NAMES= 131 132.if ${MK_CXX} != "no" 133GTFILES_LANG_DIR_NAMES+= cp 134.endif 135 136# The list of language specific files for gengtype 137.for L in ${GTFILES_LANG_DIR_NAMES} c 138.if exists(${GCCDIR}/$L-config-lang.in) 139# Source the language config file 140L_GTFILES!= sh -c '. ${GCCDIR}/$L-config-lang.in; echo $$gtfiles' 141.else 142L_GTFILES!= sh -c '. ${GCCDIR}/$L/config-lang.in; echo $$gtfiles' 143.endif 144.for F in ${L_GTFILES} 145GTFILES_FILES+= $F 146GTFILES_LANGS+= $L 147.endfor 148.endfor 149GTFILES+= ${GTFILES_FILES} 150 151# 152# Tree definition files. 153# 154TREE_DEF_FILES= 155 156.if ${MK_CXX} != "no" 157TREE_DEF_FILES+= cp/cp-tree.def 158.endif 159 160# 161# Option files. 162# 163OPT_FILES= c.opt common.opt 164 165.if exists(${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}.opt) 166OPT_FILES+= ${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}.opt 167.endif 168 169.if exists(${.CURDIR}/${GCC_CPU}-freebsd.opt) 170OPT_FILES+= ${.CURDIR}/${GCC_CPU}-freebsd.opt 171.endif 172 173.if ${TARGET_CPUARCH} == "powerpc" 174OPT_FILES+= ${GCCDIR}/config/${GCC_CPU}/sysv4.opt 175.endif 176 177.if ${TARGET_CPUARCH} == "sparc64" 178OPT_FILES+= ${GCCDIR}/config/${GCC_CPU}/long-double-switch.opt 179.endif 180 181.if exists(${.CURDIR}/freebsd.opt) 182OPT_FILES+= ${.CURDIR}/freebsd.opt 183.endif 184 185#----------------------------------------------------------------------- 186# Build rules for header files and generator tools 187 188# Host config 189config.h: 190 TARGET_CPU_DEFAULT="${TARGET_CPU_DEFAULT}" \ 191 HEADERS="auto-host.h ansidecl.h" \ 192 DEFINES="" \ 193 /bin/sh ${GCCDIR}/mkconfig.sh ${.TARGET} 194 195GENSRCS+= config.h 196CLEANFILES+= cs-config.h 197 198# Build config 199bconfig.h: 200 TARGET_CPU_DEFAULT="${TARGET_CPU_DEFAULT}" \ 201 HEADERS="auto-host.h ansidecl.h" \ 202 DEFINES="" \ 203 /bin/sh ${GCCDIR}/mkconfig.sh ${.TARGET} 204.if exists(${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}-modes.def) 205 echo '#define EXTRA_MODES_FILE "${GCC_CPU}/${GCC_CPU}-modes.def"' >> ${.TARGET} 206.endif 207 208GENSRCS+= bconfig.h 209CLEANFILES+= cs-bconfig.h 210 211# tconfig.h 212tconfig.h: 213 TARGET_CPU_DEFAULT="${TARGET_CPU_DEFAULT}" \ 214 HEADERS="auto-host.h ansidecl.h" \ 215 DEFINES="USED_FOR_TARGET" \ 216 /bin/sh ${GCCDIR}/mkconfig.sh ${.TARGET} 217 218GENSRCS+= tconfig.h 219CLEANFILES+= cs-tconfig.h 220# Options 221optionlist: ${OPT_FILES} 222 LC_ALL=C awk -f ${GCCDIR}/opt-gather.awk ${.ALLSRC} > ${.TARGET} 223 224options.h: optionlist 225 LC_ALL=C awk -f ${GCCDIR}/opt-functions.awk \ 226 -f ${GCCDIR}/opth-gen.awk \ 227 < ${.ALLSRC} > ${.TARGET} 228 229options.c: optionlist 230 LC_ALL=C awk -f ${GCCDIR}/opt-functions.awk \ 231 -f ${GCCDIR}/optc-gen.awk \ 232 -v header_name="config.h system.h coretypes.h tm.h" \ 233 < ${.ALLSRC} > ${.TARGET} 234GENONLY+= optionlist options.h options.c 235 236# Target machine config 237tm.h: 238 TARGET_CPU_DEFAULT="${TARGET_CPU_DEFAULT}" \ 239 HEADERS="${TARGET_INC}" \ 240 DEFINES="" \ 241 /bin/sh ${GCCDIR}/mkconfig.sh ${.TARGET} 242.if exists(${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}-modes.def) 243 echo '#define EXTRA_MODES_FILE "${GCC_CPU}/${GCC_CPU}-modes.def"' >> ${.TARGET} 244.endif 245 246GENSRCS+= tm.h 247CLEANFILES+= cs-tm.h 248 249# Target machine protos/preds. 250tm_p.h: 251 TARGET_CPU_DEFAULT="${TARGET_CPU_DEFAULT}" \ 252 HEADERS="${GCC_CPU}/${GCC_CPU}-protos.h tm-preds.h" \ 253 DEFINES="" \ 254 /bin/sh ${GCCDIR}/mkconfig.sh tm_p.h 255 256GENSRCS+= tm_p.h 257CLEANFILES+= cs-tm_p.h 258 259# gencheck 260gencheck.h: ${TREE_DEF_FILES} 261.for F in ${TREE_DEF_FILES} 262 echo "#include \"$F\"" >> ${.TARGET} 263.endfor 264 touch ${.TARGET} 265 266GENSRCS+= gencheck.h 267 268 269# Source header for gtyp generator. 270gtyp-gen.h: ${GTFILES} 271 echo "/* This file is machine generated. Do not edit. */" > ${.TARGET} 272 echo "static const char * const srcdir = " >> ${.TARGET} 273 echo "\"$(GTFILES_SRCDIR)\";" >> ${.TARGET} 274 echo "static const char * const lang_files[] = {" >> ${.TARGET} 275.for F in ${GTFILES_FILES} 276 echo "\"$F\", " >> ${.TARGET} 277.endfor 278 echo "NULL};" >> ${.TARGET} 279 echo "static const char * const langs_for_lang_files[] = {">> ${.TARGET} 280.for F in ${GTFILES_LANGS} 281 echo "\"$F\", " >> ${.TARGET} 282.endfor 283 echo "NULL};" >> ${.TARGET} 284 echo "static const char * const all_files[] = {" >> ${.TARGET} 285.for F in ${GTFILES} 286 echo "\"$F\", " >> ${.TARGET} 287.endfor 288 echo "NULL};" >> ${.TARGET} 289 echo "static const char * const lang_dir_names[] = {" >> ${.TARGET} 290.for F in c ${GTFILES_LANG_DIR_NAMES} 291 echo "\"$F\", " >> ${.TARGET} 292.endfor 293 echo "NULL};" >> ${.TARGET} 294 295GENSRCS+= gtyp-gen.h 296 297# Version header for gcov 298gcov-iov.h: 299 echo "#define GCOV_VERSION ((gcov_unsigned_t)0x34303270)" >> ${.TARGET} 300 301GENSRCS+= gcov-iov.h 302 303# Multilib config file 304multilib.h: 305.if ${TARGET_ARCH} == "powerpc64" || ${TARGET_ARCH} == "amd64" 306 echo 'static const char *const multilib_raw[] = { \ 307 ". !m64 !m32;", \ 308 "64:../lib m64 !m32;", \ 309 "32:../lib32 !m64 m32;", NULL };' > ${.TARGET} 310 echo 'static const char *multilib_options = "m64/m32";' >> ${.TARGET} 311 echo 'static const char *const multilib_matches_raw[] = { \ 312 "m64 m64;", "m32 m32;", NULL };' >> ${.TARGET} 313.else 314 echo 'static const char *const multilib_raw[] = { \ 315 ". ;", NULL };' > ${.TARGET} 316 echo 'static const char *multilib_options = "";' >> ${.TARGET} 317 echo 'static const char *const multilib_matches_raw[] = { \ 318 NULL };' >> ${.TARGET} 319.endif 320 echo 'static const char *multilib_extra = "";' >> ${.TARGET} 321 echo 'static const char *const multilib_exclusions_raw[] = { \ 322 NULL };' >> ${.TARGET} 323 324GENSRCS+= multilib.h 325 326configargs.h: 327 echo 'static const char configuration_arguments[] =' > ${.TARGET} 328 echo ' "FreeBSD/${TARGET_ARCH} system compiler";' >> ${.TARGET} 329 echo 'static const char thread_model[] = "posix";' >> ${.TARGET} 330 echo 'static const struct {' >> ${.TARGET} 331 echo ' const char *name, *value;' >> ${.TARGET} 332 echo '} configure_default_options[] = {' >> ${.TARGET} 333 echo ' { "NULL", "NULL" } };' >> ${.TARGET} 334 335GENSRCS+= configargs.h 336 337# Language spec files 338specs.h: 339 echo '#include "cp/lang-specs.h"' > ${.TARGET} 340 341GENSRCS+= specs.h 342 343gstdint.h: 344 echo '#include "sys/types.h"' > ${.TARGET} 345 echo '#include "sys/stdint.h"' >> ${.TARGET} 346 347GENSRCS+= gstdint.h 348 349# Linked headers 350gthr-default.h: ${GCCDIR}/gthr-posix.h 351 ln -sf ${.ALLSRC} ${.TARGET} 352 353GENSRCS+= gthr-default.h 354 355.if ${TARGET_CPUARCH} == "arm" && ${MK_ARM_EABI} != "no" 356unwind.h: ${GCCDIR}/config/arm/unwind-arm.h 357.else 358unwind.h: ${GCCDIR}/unwind-generic.h 359.endif 360 361unwind.h: 362 ln -sf ${.ALLSRC} ${.TARGET} 363 364GENSRCS+= unwind.h 365 366# 367# gtype gunk 368# 369gengtype-lex.c: gengtype-lex.l 370 flex -ogengtype-lex.c ${.ALLSRC} 371 372gengtype-yacc.h: gengtype-yacc.y 373 yacc -d -o gengtype-yacc.c ${.ALLSRC} 374 375gengtype-yacc.c: gengtype-yacc.h 376 377gengtype-yacc+%DIKED.c: gengtype-yacc.c 378 cat ${.ALLSRC} > ${.TARGET} 379 sed -e "s/xmalloc/malloc/g" \ 380 -e "s/xrealloc/realloc/g" \ 381 -e "s/malloc/xmalloc/g" \ 382 -e "s/realloc/xrealloc/g" \ 383 ${.ALLSRC} > ${.TARGET} 384 385GENSRCS+= gengtype-lex.c gengtype-yacc.h gengtype-yacc+%DIKED.c 386CLEANFILES+= gengtype-yacc.c 387 388gengtype: gengtype.o gengtype-yacc+%DIKED.o gengtype-lex.o errors.o \ 389 ${LIBIBERTY} 390 ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} 391 392gtype-desc.h: gengtype 393 ./gengtype 394 touch ${.TARGET} 395 396gtype-desc.c: gtype-desc.h 397 398GENONLY+= gtype-desc.c gtype-desc.h 399CLEANFILES+= gt-*.h gtype-*.h 400 401# 402# Generator tools. 403# 404.for F in check checksum genrtl modes 405gen$F: gen$F.o errors.o ${LIBIBERTY} 406 ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} 407.endfor 408 409.for F in attr attrtab automata codes conditions config constants emit \ 410 extract flags opinit output peep preds recog 411gen$F: gen$F.o rtl.o read-rtl.o ggc-none.o vec.o min-insn-modes.o \ 412 gensupport.o print-rtl.o errors.o ${LIBIBERTY} 413 ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} -lm 414.endfor 415 416gencondmd: gencondmd.o 417 ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} 418 419# 420# Generated .md files. 421# 422insn-conditions.md: gencondmd 423 ./gencondmd > ${.TARGET} 424GENSRCS+= insn-conditions.md 425 426# 427# Generated header files. 428# 429 430.for F in constants 431insn-$F.h: gen$F ${MD_FILE} 432 ./gen$F ${MD_FILE} > ${.TARGET} 433GENSRCS+= insn-$F.h 434.endfor 435 436.for F in attr codes config flags 437insn-$F.h: gen$F ${MD_FILE} insn-conditions.md 438 ./gen$F ${MD_FILE} insn-conditions.md > ${.TARGET} 439GENSRCS+= insn-$F.h 440.endfor 441 442# Header files with irregular names. 443genrtl.h: gengenrtl 444 ./gengenrtl -h > ${.TARGET} 445GENSRCS+= genrtl.h 446 447tm-preds.h: genpreds 448 ./genpreds -h ${MD_FILE} > ${.TARGET} 449GENSRCS+= tm-preds.h 450 451tm-constrs.h: genpreds 452 ./genpreds -c ${MD_FILE} > ${.TARGET} 453GENSRCS+= tm-constrs.h 454 455tree-check.h: gencheck 456 ./gencheck > ${.TARGET} 457GENSRCS+= tree-check.h 458 459insn-modes.h: genmodes 460 ./genmodes -h > ${.TARGET} 461GENSRCS+= insn-modes.h 462 463# 464# Generated source files. 465# 466.for F in attrtab automata emit extract opinit output peep preds recog 467insn-$F.c: gen$F ${MD_FILE} insn-conditions.md 468 ./gen$F ${MD_FILE} insn-conditions.md > ${.TARGET} 469GENONLY+= insn-$F.c 470.endfor 471 472.for F in conditions 473insn-$F.c: gen$F ${MD_FILE} 474 ./gen$F ${MD_FILE} > ${.TARGET} 475GENSRCS+= insn-$F.c 476.endfor 477 478# Source files with irregular names. 479insn-modes.c: genmodes 480 ./genmodes > ${.TARGET} 481GENONLY+= insn-modes.c 482 483min-insn-modes.c: genmodes 484 ./genmodes -m > ${.TARGET} 485GENSRCS+= min-insn-modes.c 486 487genrtl.c: gengenrtl 488 ./gengenrtl > ${.TARGET} 489GENONLY+= genrtl.c 490 491gencondmd.c: genconditions ${MD_FILE} 492 ./genconditions ${MD_FILE} > ${.TARGET} 493GENSRCS+= gencondmd.c 494 495#----------------------------------------------------------------------- 496# Build tools. 497 498GNTOOLS+= genattr genattrtab genautomata gencodes gencheck genchecksum \ 499 genconditions gencondmd genconfig genconstants genemit \ 500 genextract genflags gengenrtl gengtype genmodes genopinit \ 501 genoutput genpeep genpreds genrecog 502 503all: ${GNTOOLS} ${GENSRCS} ${GENONLY} 504beforedepend: ${GENONLY} 505 506# 507#----------------------------------------------------------------------- 508# Build 'pocket' libiberty exclusively for build tools use. 509 510LIBIBERTY_SRCS= choose-temp.c concat.c cp-demangle.c cp-demint.c cplus-dem.c \ 511 dyn-string.c fibheap.c fopen_unlocked.c getpwd.c getruntime.c \ 512 hashtab.c hex.c lbasename.c make-temp-file.c md5.c obstack.c \ 513 partition.c pex-unix.c physmem.c safe-ctype.c splay-tree.c xexit.c \ 514 xmalloc.c xmemdup.c xstrdup.c xstrerror.c 515LIBIBERTY_OBJS= ${LIBIBERTY_SRCS:R:S/$/.o/g} 516 517.for _src in ${LIBIBERTY_SRCS} 518${_src:R:S/$/.o/}: ${_src} 519 ${CC} -c -I ${.CURDIR}/../libiberty ${CFLAGS} -o ${.TARGET} ${.IMPSRC} 520.endfor 521 522${LIBIBERTY}: ${LIBIBERTY_OBJS} 523 @rm -f ${.TARGET} 524 @${AR} ${ARFLAGS} ${.TARGET} `lorder ${LIBIBERTY_OBJS} | tsort -q` 525 ${RANLIB} ${.TARGET} 526CLEANFILES+= ${LIBIBERTY} ${LIBIBERTY_OBJS} 527 528 529#----------------------------------------------------------------------- 530# Fixups. 531 532# Set OBJS the same as bsd.prog.mk would do if we defined PROG. We can't 533# define PROG because we have multiple programs. 534# 535SRCS= errors.c genattr.c genattrtab.c \ 536 genautomata.c gencheck.c genchecksum.c gencodes.c \ 537 genconditions.c genconfig.c genconstants.c genemit.c \ 538 genextract.c genflags.c gengenrtl.c gengtype.c genmodes.c \ 539 genopinit.c genoutput.c genpeep.c genpreds.c genrecog.c \ 540 gensupport.c ggc-none.c print-rtl.c read-rtl.c rtl.c \ 541 vec.c 542 543SRCS+= ${GENSRCS} 544OBJS+= ${SRCS:N*.h:R:S/$/.o/g} 545GENOBJS+= ${GENSRCS:N*.h:R:S/$/.o/g} 546CLEANFILES+= ${GENSRCS} ${GENONLY} ${GENOBJS} ${GNTOOLS} 547 548#----------------------------------------------------------------------- 549# Manual dependencies. 550.if !exists(${DEPENDFILE}) 551.include "Makefile.dep" 552.endif 553 554.include <bsd.prog.mk> 555# DO NOT DELETE 556