Makefile 1.1 KB
Newer Older
thomas.forbriger's avatar
thomas.forbriger committed
1
2
3
4
5
6
7
8
9
10
11
12
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.4 2002-03-14 10:46:38 forbrig Exp $
# 
# Copyright (c) 2002 by Thomas Forbriger (IMG Frankfurt) 
# 
# SFF header manipulation
# 
# REVISIONS and CHANGES 
#    14/03/2002   V1.0   Thomas Forbriger
# 
# ============================================================================
thomas.forbriger's avatar
thomas.forbriger committed
13
#
thomas.forbriger's avatar
thomas.forbriger committed
14
15
16
17
18
19
20
21
22
23
24
25
26

all:

flist: Makefile $(wildcard *.f)
	echo $^ | tr ' ' '\n' | sort > $@

.PHONY: edit
edit: flist; vim $<

.PHONY: clean
clean: ; 
	-find . -name \*.bak | xargs --no-run-if-empty /bin/rm -v
	-/bin/rm -vf flist *.o
thomas.forbriger's avatar
thomas.forbriger committed
27
28
29

F2CLIB=-lf2c -lm -L${SERVERLIBDIR}
PGPLOTLIB=-lf2cpgplot52 -lX11 -L/usr/X11/lib
30
LIBSFF=-lsff -L$(SERVERLIBDIR)
thomas.forbriger's avatar
thomas.forbriger committed
31
32
33
34
35
36
37
38
39
40
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)

thomas.forbriger's avatar
thomas.forbriger committed
41
coma epi chaco sesoc: %: %.o
42
43
44
	$(CC) -o $@ $< $(LIBTF) $(LIBSFF) $(F2CLIB)
	newprog $@

45
46
offli sesot merse: %: %.o
	$(CC) -o $@ $< $(LIBTF) -lsffu -ltime_trad $(LIBSFF) $(F2CLIB)
thomas.forbriger's avatar
thomas.forbriger committed
47
	newprog $@
thomas.forbriger's avatar
thomas.forbriger committed
48
49

# ----- END OF Makefile -----