Makefile 676 Bytes
Newer Older
thomas.forbriger's avatar
thomas.forbriger committed
1
2
# ---------------------------------------
#
3
# $Id: Makefile,v 1.3 2000-10-12 17:44:56 forbrig Exp $
thomas.forbriger's avatar
thomas.forbriger committed
4
5
6
7
8
9
10
#
# Makefile fuer tools /src/ts/hd
#
# ---------------------------------------

F2CLIB=-lf2c -lm -L${SERVERLIBDIR}
PGPLOTLIB=-lf2cpgplot52 -lX11 -L/usr/X11/lib
11
LIBSFF=-lsff -L$(SERVERLIBDIR)
thomas.forbriger's avatar
thomas.forbriger committed
12
13
14
15
16
17
18
19
20
21
22
23
24
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
coma epi chaco: %: %.o
26
27
28
	$(CC) -o $@ $< $(LIBTF) $(LIBSFF) $(F2CLIB)
	newprog $@

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