home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-07-07 | 1.2 KB | 62 lines |
- #-----------------------------------------------------------------------------
- # EXAMPLES Makefile
- #-----------------------------------------------------------------------------
- #
- # Do not modify this file. If you want to add a new example, modify the file
- # Makefile.dep.
- #-----------------------------------------------------------------------------
-
- # the C compiler
- CC = gcc
-
- # the Ada Compiler
- ADAC = $(CC)
-
- # Gnat1 compilation flags
- GF =
-
- # Gnatbind binder flags
- BF =
-
- # Extension for ".o" files
- o = o
-
- # Extension for executable files
- e =
-
-
- #-----------------------------------------------------------------------------
- # Main rule
-
- main_rule : process
-
- include Makefile.dep
-
- process : clean $(LIST_EXEC)
-
-
- ###############################################################################
- # General rules
- ###############################################################################
- .SUFFIXES: .adb .ads .ali .o
- .PHONY: clean process force
-
- .adb.o:
- $(ADAC) -c $(GF) $<
-
- .ads.o:
- $(ADAC) -c $(GF) $<
-
- .c.o:
- $(CC) -c $(CFLAGS) $<
-
- % : %.o
- gnatbl $@.ali -o $@ $($@_DEP)
- # ./$@
-
-
- clean : force
- rm -f *.$o *.ali b_*.c *.s $(LIST_EXEC)
-
- force :
-