Makefile 632 Bytes
Newer Older
1
2
3
#
# Makefile for work/src/libs/libtime
#
4
5
# $Id: Makefile,v 1.2 2000-08-05 19:52:01 thof Exp $
#
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

F2CLIB=-lm -lf2c -L${SERVERLIBDIR}
F2CFLAGS=-f -u
#CC=gcc
CFLAGS=-O2 -I${SERVERINCLUDEDIR} -I${LOCINCLUDEDIR}

LIBTIMEOBS=libtime.o clibtime.o timeutil.o

docs: $(DOCS)

.f.o:
	f2c $(F2CFLAGS) $<
	$(CC) $(CFLAGS) $(<:.f=.c) -c 
	@rm  $(<:.f=.c)

clean:
	-/bin/rm *.o *.bak

datatime.o: datatime.c datatime.h 
timeutil.o: timeutil.c timeutil.h
clibtime.o: clibtime.c libtime.h


libtime.a: $(LIBTIMEOBS)
	ar rcv libtime.a $(LIBTIMEOBS)
	ranlib libtime.a
	newlib libtime.a

libtime.doc: libtime.f
	extractdoc.tcl libtime.f > libtime.doc