1 # Makefile for phoon, deltime, parsetime, and libtws (stolen from mh).
5 # BSD42 Set this if your system is BSD 4.2 or later.
6 # SYS5 Set this if your system is System V.
7 # EUROPE Makes nn/nn/nn mean dd/mm/yy instead of mm/dd/yy.
8 # ATZ This has something to do with alpha-numeric time zones.
9 # DSTXXX This has something to do with daylight savings time.
12 # LEXDEBUG the rest of these
14 OPTIONS = -DBSD42 -DATZ -DDSTXXX
18 CFLAGS = -O $(OPTIONS)
26 all: phoon phoon.cat deltime deltime.cat parsetime libtws.cat
29 phoon: phoon.o libtws.a
30 $(CC) $(LDFLAGS) -o phoon phoon.o -lm libtws.a
32 phoon.o: phoon.c tws.h
35 deltime: deltime.o libtws.a
36 $(CC) $(LDFLAGS) -o deltime deltime.o libtws.a
38 deltime.o: deltime.c tws.h
41 parsetime: parsetime.o libtws.a
42 $(CC) $(LDFLAGS) -o parsetime parsetime.o libtws.a
44 parsetime.o: parsetime.c tws.h
47 libtws.a: dtime.o dtimep.o lexstring.o
48 ar r libtws.a dtime.o dtimep.o lexstring.o
52 dtime.o: dtime.c tws.h
55 dtimep.o: dtimep.c tws.h
58 lex -nt dtimep.lex | sed -f lexedit.sed > dtimep.c
61 lexstring.o: lexstring.c
62 $(CC) $(CFLAGS) -c -DONECASE lexstring.c
66 -rm -f dtimep.c *.o libtws.a phoon deltime parsetime *.cat phoon.shar core
68 phoon.shar: phoon.shar1 phoon.shar2
70 phoon.shar1: README Makefile deltime.c deltime.man dtime.c dtimep.lex
71 shar -v -c -p X README Makefile deltime.c deltime.man dtime.c dtimep.lex > phoon.shar1
73 phoon.shar2: lexedit.sed lexstring.c libtws.man parsetime.c phoon.c phoon.man tws.h
74 shar -v -c -p X lexedit.sed lexstring.c libtws.man parsetime.c phoon.c phoon.man tws.h > phoon.shar2