jftt/l2/Makefile

17 lines
194 B
Makefile
Raw Permalink 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)
2024-11-04 08:48:39 +01:00
%: %.lex
2024-11-03 22:05:19 +01:00
$(FLEX) -o $(BIN)/$@.lex.yy.c $<
$(CC) $(BIN)/$@.lex.yy.c -lfl -lm -o $(BIN)/$@
clean:
rm -rfv $(BIN)