From 9f0767c4596d02520e93ff16a8fc1af7b3b825b2 Mon Sep 17 00:00:00 2001 From: Annie Date: Tue, 4 Feb 2025 15:27:21 -0500 Subject: [PATCH] added Makefile example from flex documentation --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Makefile b/Makefile index e69de29..4b80caf 100644 --- a/Makefile +++ b/Makefile @@ -0,0 +1,14 @@ +# Basic Makefile example from flex documentation -- provides explicit rules +# Creates "myprogram" from "scan.l" and "myprogram.c" +# +#LEX=flex +#myprogram: scan.o myprogram.o +#$(CC) -o $@ $(LDFLAGS) $^ +#myprogram.o: myprogram.c +#$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $^ +#scan.o: scan.c +#$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $^ +#scan.c: scan.l +#$(LEX) $(LFLAGS) -o $@ $^ +#clean: +#$(RM) *.o scan.c