FLAGS = -O2 -g -Wall

all : fs.exe

fs.exe : main.o parse.o operator.o variable.o spec.o func.o prepro.o
	gcc main.o parse.o operator.o variable.o spec.o func.o prepro.o $(FLAGS) -o fs.exe

# i can't be bothered with complex macros and stuff.. rather wait until
# it actually goes in SMMU. not too many of them anyway

main.o : main.c
	gcc $(FLAGS) -c main.c

parse.o : parse.c
	gcc $(FLAGS) -c parse.c

operator.o : operator.c
	gcc $(FLAGS) -c operator.c

variable.o : variable.c
	gcc $(FLAGS) -c variable.c

spec.o : spec.c
	gcc $(FLAGS) -c spec.c

func.o : func.c
	gcc $(FLAGS) -c func.c

prepro.o : prepro.c
	gcc $(FLAGS) -c prepro.c
