17 lines
192 B
Makefile
17 lines
192 B
Makefile
|
FLEX = flex
|
||
|
CC = gcc
|
||
|
|
||
|
BIN = target
|
||
|
|
||
|
all: dirs 1 2 3 4
|
||
|
|
||
|
dirs:
|
||
|
mkdir -p $(BIN)
|
||
|
|
||
|
%: %.l
|
||
|
$(FLEX) -o $(BIN)/$@.lex.yy.c $<
|
||
|
$(CC) $(BIN)/$@.lex.yy.c -lfl -lm -o $(BIN)/$@
|
||
|
|
||
|
clean:
|
||
|
rm -rfv $(BIN)
|