########################################################################### # # Filename: # # Makefile # # Description: # # Makefile to build and run the example programs # # There are three targets in this Makefile: # all - compile all the examples # run - execute all the examples (on the simulator) # clean - delete derived files # # Revision: # # $Id: Makefile,v $ # ########################################################################### SHELL = /bin/sh CC = erc-coff-gcc RUN = erc-coff-run CFLAGS = LDLIBS = -lc GMFLAGS = -f TESTS = hello hello2 hello3 t2 man dmec pr1 all: $(TESTS) hello: hello.adb erc-coff-gnatmake $(GMFLAGS) hello hello2: hello2.adb io.ads erc-coff-gnatmake $(GMFLAGS) hello2 hello3: hello3.adb erc-coff-gnatmake $(GMFLAGS) hello3 t2: t2.adb peek_and_poke.ads peek_and_poke.adb erc-coff-gnatmake $(GMFLAGS) t2 man: man.adb erc-coff-gnatmake $(GMFLAGS) man e1: e1.adb erc-coff-gnatmake $(GMFLAGS) $< e2: e2.adb erc-coff-gnatmake $(GMFLAGS) $< e3: e3.adb erc-coff-gnatmake $(GMFLAGS) $< pr1: pr1.adb erc-coff-gnatmake $(GMFLAGS) $< run: $(TESTS) erc-coff-run $(TESTS) clean: rm -rf $(TESTS) *.ali *.o b~*