Added rules to build .c files from .y/.l files using yacc/lex

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@16513 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2003-04-22 14:25:17 +00:00
parent dfc73cebe8
commit d662d63048
2 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Tue Apr 22 16:11:14 2003 Nicola Pero <n.pero@mi.flashnet.it>
* rules.make (%.c): New rules to generate .c files from .l files
using lex and from .y files using yacc.
Tue Apr 22 15:27:02 2003 Nicola Pero <n.pero@mi.flashnet.it>
* GNUstep.csh.in: Quote all values of setenv, set, source calls.

View file

@ -442,6 +442,17 @@ $(GNUSTEP_OBJ_DIR)/%${OEXT} : %.cp
$(filter-out $($<_FILE_FILTER_OUT_FLAGS),$(ALL_CPLISTFLAGS))\
$($<_FILE_FLAGS) $< -o $@$(END_ECHO)
# The following rule builds a .c file from a lex .l file.
# You can define LEX_FLAGS if you need them.
%.c: %.l
$(LEX) $(LEX_FLAGS) -t $< > $@
# The following rule builds a .c file from a yacc/bison .y file.
# You can define YACC_FLAGS if you need them.
%.c: %.y
$(YACC) $(YACC_FLAGS) $<
mv -f y.tab.c $@
# The following dummy rules are needed for performance - we need to
# prevent make from spending time trying to compute how/if to rebuild
# the system makefiles! the following rules tell him that these files