home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / misc / amigadate.lha / AmigaDate.readme < prev    next >
Encoding:
Text File  |  1994-03-31  |  782 b   |  34 lines

  1. Short: Outputs "(dd.mm.yy)" Useful in Makefiles
  2. Type: dev/c
  3. Uploader: too@cardhu.cs.hut.fi
  4. Author: Tomi Ollila <too@cardhu.cs.hut.fi>
  5.  
  6. This program Outputs SAS/C AMIGADATE and DICE COMMODORE_DATE style date string
  7. This is most useful in Makefiles, where one can define preprocessor strings.
  8.  
  9. GNUMakefile example:
  10.  
  11. #
  12. # Amigadate GNUMakefile example. (You must have amigadate compiled by now ;D)
  13. #
  14.  
  15. AMIGADATE=    $(shell amigadate)
  16.  
  17. MAKE=    gmake
  18. CC=    gcc
  19. CFLAGS=    -v -O2 -D__AMIGADATE__='"$(AMIGADATE)"'
  20. LFLAGS= -nostdlib -s
  21.  
  22.  
  23. AmigaDate: amigadate.c
  24.     $(CC) $(LFLAGS) -o $@ amigadate.c
  25.  
  26.  
  27. #EOF
  28.  
  29. This program is re-entrant and can be made resident. Perhaps the easiest way
  30. to do this is to enter `protect amigadate +H' but this may not work with
  31. future OSses.
  32.  
  33. Tomi Ollila
  34. too@cardhu.cs.hut.fi