123456789101112131415161718192021 |
- OBJS=src/*.hi src/*.o src/*.info
- AUTO_INTERM=src/scanner.hs src/parser.hs
- INTERM=$(AUTO_INTERM) src/intermediate_rep.hs src/compiler.hs src/mips.hs src/main.hs
- PROGRAM=compiler
- all: $(PROGRAM)
- src/scanner.hs: src/scanner.x
- alex --info -o src/scanner.hs src/scanner.x
- src/parser.hs : src/parser.y
- happy --info -o src/parser.hs src/parser.y
- $(PROGRAM): $(INTERM)
- ghc -dynamic -o $(PROGRAM) $(INTERM)
- clean:
- rm -f $(PROGRAM) $(AUTO_INTERM) $(OBJS)
|