home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c019 / 1.ddi / ARC521_C / MAKE.TWS < prev    next >
Encoding:
Text File  |  1988-08-01  |  1.3 KB  |  41 lines

  1. # Makefile for phoon, deltime, parsetime, and libtws (stolen from mh).
  2.  
  3. # Valid options:
  4. #   BSD42      Set this if your system is BSD 4.2 or later.
  5. #   SYS5       Set this if your system is System V.
  6. #   EUROPE     Makes nn/nn/nn mean dd/mm/yy instead of mm/dd/yy.
  7. #   ATZ        This has something to do with alpha-numeric time zones.
  8. #   DSTXXX     This has something to do with daylight savings time.
  9. #   HUJI       I don't
  10. #   INETONLY           know what
  11. #   LEXDEBUG                     the rest of these
  12. #   ONECASE                                        do.
  13. #
  14. # Original posted to mod.sources by Jef Poskanzer. Cannibalized for use
  15. # with ARC by Howard Chu.
  16. OPTIONS    =    -DBSD42 -DATZ -DDSTXXX -DONECASE
  17.  
  18.  
  19. CC      =    cc
  20. CFLAGS  =    -O $(OPTIONS)
  21. LDFLAGS =    -ns
  22.  
  23. libtws.a:    dtime.o dtimep.o lexstring.o
  24.         ar r libtws.a dtime.o dtimep.o lexstring.o
  25. # The following amusing bullshit makes sure that ranlib
  26. # gets executed if it is present, no matter which shell
  27. # make uses.  If there's a better way to do this, someone
  28. # please tell me!
  29.         -if test -r /usr/bin/ranlib ; then ranlib libtws.a ; fi
  30.         -if ( -r /usr/bin/ranlib ) ranlib libtws.a
  31.  
  32. dtime.o:    dtime.c tws.h
  33.  
  34. dtimep.o:    dtimep.c tws.h
  35.  
  36. dtimep.c:    dtimep.lex
  37.         lex -nt dtimep.lex | sed -f lexedit.sed > dtimep.c
  38.  
  39. lexstring.o:    lexstring.c
  40.         $(CC) $(CFLAGS) -c lexstring.c
  41.