home *** CD-ROM | disk | FTP | other *** search
/ Solo Programadores 22 / SOLO_22.iso / packages / win32ada / data.z / make_ada.common < prev    next >
Encoding:
Text File  |  1995-12-05  |  1.3 KB  |  63 lines

  1. # $Source: /home/harp/1/proto/monoBANK/winnt/make_ada.common,v $ 
  2. # $Revision: 1.2 $ $Date: 95/02/11 11:13:51 $ $Author: mg $ 
  3.  
  4. # Common Make commands for Ada programs
  5.  
  6. #Executables & flags
  7. GCC=gcc
  8. GCC_FLAGS=-c -g
  9. GNATBL=gnatbl
  10. GNATBL_FLAGS=-mwindows
  11. RC_FLAGS=/i \msvc20\include
  12. NT_LIBS=e:$(WIN32ADA)\nt-libs
  13. RC=rc
  14. HC=hc31
  15.  
  16.  
  17. #New suffixes for inference rules for ada
  18. .SUFFIXES: .adb .ads .ali .hpj .hlp .rtf .bmp
  19.  
  20. #Ada inference rules
  21. #  Apparantly there is no way to modify ADA_INCLUDE_PATH from the
  22. #  command line, so we have to add to the environment variable
  23. #  and then reset it, so it doen't keep growing
  24. .adb.obj:
  25.     $(GCC) $(GCC_FLAGS) $<  
  26.  
  27. .ads.obj:
  28.     $(GCC) $(GCC_FLAGS) $<  
  29.  
  30. .adb.ali:
  31.     $(GCC) $(GCC_FLAGS) $<  
  32.  
  33. .ads.ali:
  34.     $(GCC) $(GCC_FLAGS) $<  
  35.  
  36.  
  37. #Default Dependencies
  38. #.ads.adb:
  39.  
  40. #.ads.ali:
  41.  
  42. #Compiling the resource file
  43. #(rc is the default command so I could have just changed the RCFLAGS variable)
  44. .rc.res:
  45.     $(RC) $(RC_FLAGS) $<
  46.  
  47. #The help file
  48. .hpj.hlp :
  49.     $(HC) $<
  50.  
  51. .rtf.hlp :
  52.  
  53. .bmp.hlp :
  54.  
  55. #The link command.  To get around the lack of a "-L" option for gnatbl,
  56. #it adds to 2 environment var paths, then resets them.
  57. .ali.exe :
  58.     $(GNATBL) $(GNATBL_FLAGS) $(OBJS) -o $@
  59.  
  60. #Use the "clean" target to get back to only sources
  61. clean :
  62.     del /q /f *.ali *.obj *.exe *.res b_*.c *.lnk *.hlp
  63.