home *** CD-ROM | disk | FTP | other *** search
/ Aminet 10 / aminetcdnumber101996.iso / Aminet / util / batch / BindNames36_19.lha / Makefile < prev    next >
Makefile  |  1995-11-05  |  3KB  |  123 lines

  1. # File : Makefile
  2. #
  3. # $Project:         BindNames
  4. #
  5. # $Description:         
  6. #
  7. # $Module Id:         
  8. # $Original Author:   Robert Hardy
  9. # $Date Started:      Sun Aug  7 1994
  10. #
  11. # $Header: sqa:BobsStuff/BindNames/Makefile-v 1.9 1995/11/06 01:57:07 Bob Exp $
  12. #
  13. # $Revision: 1.9 $
  14. #
  15. # $State: Exp $
  16. #
  17. # $Locker:  $
  18. #
  19. # $Log: Makefile-v $
  20. # Revision 1.9  1995/11/06  01:57:07  Bob
  21. # Fixing distributions targest.
  22. #
  23. # Revision 1.8  1995/11/05  19:35:07  Bob
  24. # Added revdate: target.  Set the write bit on distribution icons and
  25. # added the names directory to the distribution archive.
  26. #
  27. # Revision 1.7  1995/09/07  06:23:50  Bob
  28. # Fixed problem with c:delete when there are no files to delete.
  29. #
  30. # Revision 1.6  1995/09/07  06:02:39  Bob
  31. # Changed #? to * in DIST:
  32. #
  33. # Revision 1.5  1995/09/07  04:55:20  Bob
  34. # Added $(RELEASE) for archive name.
  35. #
  36. # Revision 1.4  1995/08/08  03:02:45  Bob
  37. # Opps, a few boo-boos.
  38. #
  39. # Revision 1.3  1995/08/08  02:52:44  Bob
  40. # Added full path to `dist' lines.
  41. #
  42. # Revision 1.2  1995/08/08  02:51:04  Bob
  43. # Added RCS header and RCS support for bumping the revision.
  44. #
  45. #
  46. #
  47.  
  48. RELEASE=36_19
  49.  
  50. OBJDIR = Object
  51. OBJ = $(OBJDIR)/
  52.  
  53. MAKE =smake
  54. COMPILE=sc
  55. LINK=slink
  56.  
  57. #DBG=DEFINE=DBG
  58. DBG=
  59. CLIB=lib:sc.lib lib:amiga.lib
  60. STARTUP=lib:cres.o 
  61.  
  62. #OPTIM=
  63. OPTIM= OPTIMIZE OPTPEEP
  64.  
  65. OPTS = OBJECTNAME=object/ $(OPTIM) $(DBG)
  66.  
  67. MAINMODULE = BindNames
  68.  
  69. FILES = $(OBJ)$(MAINMODULE).o $(OBJ)Icon.o
  70.  
  71. .c.o:
  72.     $(COMPILE) $(OPTS) $*.c
  73.  
  74. system : $(OBJDIR) $(MAINMODULE)
  75.  
  76. rev:
  77.     rcs:co -x-v -l $(MAINMODULE)_rev.h $(MAINMODULE)_rev.rev
  78.     bumprev $(MAINMODULE)_rev.h
  79.     rcs:ci -x-v -u "-mIncrementing Revsion" $(MAINMODULE)_rev.h $(MAINMODULE)_rev.rev
  80.  
  81. revdate:
  82.     rcs:co -x-v -l $(MAINMODULE)_rev.h $(MAINMODULE)_rev.rev
  83.     bumprev $(MAINMODULE)_rev.h DATE
  84.     rcs:ci -x-v -u "-mIncrementing Revsion" $(MAINMODULE)_rev.h $(MAINMODULE)_rev.rev
  85.     $(MAKE)
  86.  
  87.  
  88.     # Since c:delete returns WARN if there are no file to delete,
  89.     # I use the kludge of calling it through rexx.
  90. all:
  91.     rx "address command 'delete $(OBJ)/*.o'
  92.     $(MAKE)
  93.  
  94. new:
  95.     rx "address command 'delete $(OBJ)/*.o'
  96.  
  97. DIST :
  98.     scr:rcsupdate
  99.     $(MAKE) revdate
  100.     $(MAKE) archive
  101.  
  102. archive:
  103.     rx "address command 'delete ul:BindNames*.lha'
  104.     protect *.info +w
  105.     ex:lha a ul:BindNames$(RELEASE) $(MAINMODULE) makefile SCOPTIONS ReadMe BindNames_rev.rev
  106.     ex:lha a ul:BindNames$(RELEASE) *.c *.h *.info *.org
  107.     ex:lha -x a ul:BindNames$(RELEASE) names/*
  108.     protect *.info -w
  109.  
  110.  
  111. $(OBJDIR) :
  112.     makedir $(OBJDIR)
  113.  
  114. $(MAINMODULE) : $(FILES) $(HKLIB)
  115.     $(LINK) ${STARTUP} $(FILES)\
  116.     SC SD lib $(HKLIB) $(CLIB) to $(MAINMODULE)
  117.  
  118. $(OBJ)$(MAINMODULE).o : $(MAINMODULE).c BindNames.h $(MAINMODULE)_rev.h
  119.  
  120. $(OBJ)Icon.o : Icon.c BindNames.h
  121.  
  122.