# $DragonFly: src/gnu/usr.bin/cc34/cc_tools/gengtype/Makefile,v 1.3 2005/10/01 12:40:33 corecode Exp $ .include "../Makefile.inc" .include "../../Makefile.langs" SPREPDIR= ${.CURDIR}/../../cc_prep PROG= gengtype SRCS= gengtype.c gtyp-gen.h gengtype-lex.l gengtype-yacc.y insn-modes.h SRCS+= safe-ctype.c xexit.c xmalloc.c xmemdup.c xstrdup.c LDADD= -ly CLEANFILES+= gtyp-gen.h gtyp-gen.h: Makefile ../../Makefile.langs echo "/* This file is machine generated. Do not edit. */" > gtyp-gen.h echo "static const char *const srcdir = " >> gtyp-gen.h echo "\"$(GTFILES_SRCDIR)\"" >> gtyp-gen.h echo ";" >> gtyp-gen.h echo "static const char *const lang_files[] = {" >> gtyp-gen.h ll="$(GTFILES_FILES_FILES)"; \ for f in $$ll; do \ echo "\"$$f\", "; done >> gtyp-gen.h echo "NULL};" >> gtyp-gen.h echo "static const char *const langs_for_lang_files[] = {" >> gtyp-gen.h ff="$(GTFILES_FILES_LANGS)"; \ for f in $$ff; do \ echo "\"$$f\", " ; done >> gtyp-gen.h echo "NULL};" >> gtyp-gen.h echo "static const char *const all_files[] = {" >> gtyp-gen.h gf="$(GTFILES)"; \ for f in $$gf; do \ echo "\"$$f\", "; done >> gtyp-gen.h echo " NULL};" >> gtyp-gen.h echo "static const char *const lang_dir_names[] = { \"c\", " >> gtyp-gen.h gf="$(GTFILES_LANG_DIR_NAMES)"; \ for l in $$gf; do \ echo "\"$$l\", "; done >> gtyp-gen.h echo "NULL};" >> gtyp-gen.h .include