Makefile 652 Bytes
Newer Older
thomas.forbriger's avatar
thomas.forbriger committed
1
2
# ---------------------------------------
#
3
# $Id: Makefile,v 1.2 2000-06-24 12:21:15 thof Exp $
thomas.forbriger's avatar
thomas.forbriger committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# 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

25
26
27
28
chaco: %: %.o
	$(CC) -o $@ $< $(LIBTF) $(LIBSFF) $(F2CLIB)
	newprog $@

thomas.forbriger's avatar
thomas.forbriger committed
29
30
31
offli: %: %.o
	$(CC) -o $@ $< $(LIBTF) -lsffu -ltime $(LIBSFF) $(F2CLIB)
	newprog $@