home *** CD-ROM | disk | FTP | other *** search
- # $Source: /home/harp/1/proto/monoBANK/winnt/make_ada.common,v $
- # $Revision: 1.2 $ $Date: 95/02/11 11:13:51 $ $Author: mg $
-
- # Common Make commands for Ada programs
-
- #Executables & flags
- GCC=gcc
- GCC_FLAGS=-c -g
- GNATBL=gnatbl
- GNATBL_FLAGS=-mwindows
- RC_FLAGS=/i \msvc20\include
- NT_LIBS=e:$(WIN32ADA)\nt-libs
- RC=rc
- HC=hc31
-
-
- #New suffixes for inference rules for ada
- .SUFFIXES: .adb .ads .ali .hpj .hlp .rtf .bmp
-
- #Ada inference rules
- # Apparantly there is no way to modify ADA_INCLUDE_PATH from the
- # command line, so we have to add to the environment variable
- # and then reset it, so it doen't keep growing
- .adb.obj:
- $(GCC) $(GCC_FLAGS) $<
-
- .ads.obj:
- $(GCC) $(GCC_FLAGS) $<
-
- .adb.ali:
- $(GCC) $(GCC_FLAGS) $<
-
- .ads.ali:
- $(GCC) $(GCC_FLAGS) $<
-
-
- #Default Dependencies
- #.ads.adb:
-
- #.ads.ali:
-
- #Compiling the resource file
- #(rc is the default command so I could have just changed the RCFLAGS variable)
- .rc.res:
- $(RC) $(RC_FLAGS) $<
-
- #The help file
- .hpj.hlp :
- $(HC) $<
-
- .rtf.hlp :
-
- .bmp.hlp :
-
- #The link command. To get around the lack of a "-L" option for gnatbl,
- #it adds to 2 environment var paths, then resets them.
- .ali.exe :
- $(GNATBL) $(GNATBL_FLAGS) $(OBJS) -o $@
-
- #Use the "clean" target to get back to only sources
- clean :
- del /q /f *.ali *.obj *.exe *.res b_*.c *.lnk *.hlp
-