########################################################################### # # Filename: # # Makefile # # Description: # # Makefile to build and run the demo # # There are three targets in this Makefile: # all - compile the demo # run - execute the demo (on the simulator) # clean - delete derived files # # Revision: # # $Id: Makefile,v $ # ########################################################################### SHELL = /bin/sh CC = erc-coff-gcc RUN = erc-coff-run CFLAGS = -O2 -g -gnatp LDLIBS = TESTS = demo all: $(TESTS) demo: demo.adb controllers.ads controllers.adb \ command_interpreter.ads command_interpreter.adb \ telemetry.ads telemetry.adb erc-coff-gnatmake -f $(CFLAGS) demo crt1.o: crt1.S erc-coff-gcc -c -mv7 crt1.S download_demo: crt1.o demo.adb controllers.ads controllers.adb \ command_interpreter.ads command_interpreter.adb \ telemetry.ads telemetry.adb erc-coff-gnatmake -f $(CFLAGS) demo -largs -T xgcmon.ld -Wl,-Map=map run: $(TESTS) $(RUN) $(TESTS) clean: rm -rf $(TESTS) *.o *.s a.out *.ali b_*.c b~*.ad[sb]