Merge pull request #14 from UB-CSE443/Sprint1-punctuation/grouping-FE-t#09

* Added .gitignore
* Makefile - fixed warnings
t#09
This commit is contained in:
scarlett
2025-02-19 11:12:44 -05:00
committed by GitHub
2 changed files with 11 additions and 8 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
*.tok
*.o
alpha
flex.h

View File

@ -1,21 +1,20 @@
CC := gcc CC := gcc
FLEX := flex FLEX := flex
LEX := lexicalStructure.lex LEX := lexicalStructure.lex
EXE := runner EXE := alpha
CFLAGS := -std=c99 -Wall CFLAGS := -std=c99 -Wall
CPPFLAGS := CPPFLAGS :=
runner: flex.o runner.o build: lex.yy.c runner.o runner
$(CC) -o runner runner.o flex.o
lex.yy.c: lexicalStructure.lex
$(FLEX) -o lex.yy.c $(LEX)
runner.o: runner.c runner.h flex.h runner.o: runner.c runner.h flex.h
$(CC) $(CFLAGS) -o runner.o -c runner.c $(CC) $(CFLAGS) -o runner.o -c runner.c
flex.o: lex.yy.c typedefs.h runner: lex.yy.c runner.o
$(CC) $(CFLAGS) -o flex.o -c lex.yy.c $(CC) -o $(EXE) runner.o lex.yy.c
lex.yy.c: lexicalStructure.lex
$(FLEX) -o lex.yy.c $(LEX)
debug: CFLAGS += -DDEBUG=1 debug: CFLAGS += -DDEBUG=1
debug: clean runner debug: clean runner