Makefile 580 Bytes
Newer Older
thomas.forbriger's avatar
thomas.forbriger committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# ---------------------------------------
#
# $Id: Makefile,v 1.1 2000-05-30 08:43:21 thof Exp $
#
# Makefile fuer tools /src/ts/hd
#
# ---------------------------------------

F2CLIB=-lf2c -lm -L${SERVERLIBDIR}
PGPLOTLIB=-lf2cpgplot52 -lX11 -L/usr/X11/lib
LIBSFF=-lf2cstuff -L$(SERVERLIBDIR)
LIBTF=-ltf -L$(LOCLIBDIR)
CC=gcc
CFLAGS=-O2
F2CFLAGS=-f -u

.f.o:
	f2c $(F2CFLAGS) $<
	gcc $(CFLAGS) $(<:.f=.c) -c -I${SERVERINCLUDEDIR} -I${LOCINCLUDEDIR}
	@rm  $(<:.f=.c)

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

offli: %: %.o
	$(CC) -o $@ $< $(LIBTF) -lsffu -ltime $(LIBSFF) $(F2CLIB)
	newprog $@