remove generated file egrep.c
This commit is contained in:
10
Makefile
10
Makefile
@ -14,9 +14,13 @@ LEXD:=source/
|
|||||||
LEXF:=$(shell find ${LEXD} -iname '*.l')
|
LEXF:=$(shell find ${LEXD} -iname '*.l')
|
||||||
GENLEX:=$(subst .l,.c,${LEXF})
|
GENLEX:=$(subst .l,.c,${LEXF})
|
||||||
|
|
||||||
|
YACCD:=source/
|
||||||
|
YACCF:=$(shell find ${YACCD} -iname '*.y')
|
||||||
|
GENYACC:=$(subst .y,.c,${YACCF})
|
||||||
|
|
||||||
SRCD:=source/
|
SRCD:=source/
|
||||||
OBJD:=object/
|
OBJD:=object/
|
||||||
source:=$(shell find ${SRCD} -iname '*.c') ${GENLEX}
|
source:=$(shell find ${SRCD} -iname '*.c') ${GENLEX} ${GENYACC}
|
||||||
object:=$(subst .c,.o,$(subst ${SRCD},${OBJD},${source}))
|
object:=$(subst .c,.o,$(subst ${SRCD},${OBJD},${source}))
|
||||||
|
|
||||||
HDRD:=${SRCD}
|
HDRD:=${SRCD}
|
||||||
@ -36,6 +40,9 @@ object/%.o: source/%.c
|
|||||||
source/%.c: source/%.l
|
source/%.c: source/%.l
|
||||||
${LEX} -o $@ $<
|
${LEX} -o $@ $<
|
||||||
|
|
||||||
|
source/%.c: source/%.y
|
||||||
|
${YACC} -o $@ $<
|
||||||
|
|
||||||
object/%.h.gch: source/%.h
|
object/%.h.gch: source/%.h
|
||||||
${CC} $< -o $@
|
${CC} $< -o $@
|
||||||
|
|
||||||
@ -48,5 +55,6 @@ install: ${OUTPUT}
|
|||||||
clean:
|
clean:
|
||||||
-rm ${CHDR}
|
-rm ${CHDR}
|
||||||
-rm ${GENLEX}
|
-rm ${GENLEX}
|
||||||
|
-rm ${GENYACC}
|
||||||
-rm ${object}
|
-rm ${object}
|
||||||
-rm ${OUTPUT}
|
-rm ${OUTPUT}
|
||||||
|
2384
source/egrep.c
2384
source/egrep.c
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user