include ../../Makefile.vars SRC_ADB = expressions.adb\ statements.adb\ simulations.adb\ automaton.adb\ interpreter-extended.adb\ scheduler_lex.adb\ scheduler_dfa.adb\ parser.adb\ scheduler_io.adb SRC_ADS = scheduler_shift_reduce.ads\ scheduler_goto.ads\ scheduler_tokens.ads\ expressions.ads\ statements.ads\ simulations.ads\ automaton.ads\ interpreter.ads\ interpreter-extended.ads\ scheduler_lex.ads\ scheduler_dfa.ads\ parser.ads\ scheduler_io.ads all:: target1 target2 target2: $(SRC_ADS:.ads=.o) $(SRC_ADB:.adb=.o) target1:: scheduler_lex.adb parser.adb flex : aflex scheduler.l yacc : ayacc scheduler.y scheduler_lex.adb: scheduler.l aflex scheduler.l gnatchop -w scheduler_io.a gnatchop -w scheduler.a gnatchop -w scheduler_dfa.a parser.adb: scheduler.y ayacc scheduler.y gnatchop -w scheduler.a touch parser.adb clean:: $(RM) *.a prettyprint:: @for file in ${SRC_ADB} ${SRC_ADS}; do \ echo $(PRETTY_PRINTER) $${file}; \ $(PRETTY_PRINTER) $${file}; \ done