mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 22:33:28 +00:00
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:
parent
dfc73cebe8
commit
d662d63048
2 changed files with 16 additions and 0 deletions
|
@ -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.
|
||||
|
|
11
rules.make
11
rules.make
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue