jftt/l2/Makefile

17 lines
192 B
Makefile
Raw Normal View History

2024-11-03 22:05:19 +01:00
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)