#----------------------------------------------------------------------------- # EXAMPLES Makefile #----------------------------------------------------------------------------- # # To build all of the example programs, use nmake or make. # the C compiler CC = gcc # the Ada Compiler ADAC = $(CC) # Gnat1 compilation flags GF = -O2 # Gnatbind binder flags BF = .SUFFIXES: .adb .ads .c .o .adb.o: $(ADAC) -c $(GF) $< .ads.o: $(ADAC) -c $(GF) $< .c.o: $(CC) -c $< all : test_cl.exe hello.exe demo1.exe demo2.exe use_of_import.exe \ text_io_example.exe tef.exe tgef.exe task_test.exe \ except.exe cal.exe test_cl.exe : ##test_cl.o gnatmake test_cl hello.exe : ##hello.o gnatmake hello demo1.exe : ##demo1.o instr.o gnatmake demo1 demo2.exe : ##demo2.o instr.o instr-child.o gnatmake demo2 use_of_import.exe : imported_function.o ##use_of_import.o gnatmake use_of_import -largs imported_function.o tef.exe : ##tef.o gnatmake tef tgef.exe : ##tgef.o gnatmake tgef text_io_example.exe : ##text_io_example.o gnatmake text_io_example task_test.exe : ##task_test.o gnatmake task_test.adb except.exe : ##except.o gnatmake except cal.exe : ##cal.o gnatmake cal