removed print statements from .lex file and added test_operators to Makefile
This commit is contained in:
30
Makefile
30
Makefile
@ -1,14 +1,16 @@
|
||||
# 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
|
||||
CC := gcc
|
||||
FLEX := flex
|
||||
LEX := lexicalStructure.lex
|
||||
EXE := lexicalStructure
|
||||
|
||||
lexicalStructure:
|
||||
$(FLEX) $(LEX)
|
||||
$(CC) lex.yy.c -o $(EXE)
|
||||
|
||||
test_operators:
|
||||
./$(EXE) ./tests/test_operators.alpha
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
rm -f lex.yy.c
|
||||
rm -f $(EXE)
|
||||
|
Reference in New Issue
Block a user