Makefile 1013 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# ---------------------------------------
#
# Makefile fuer plot/grepg
#
# ---------------------------------------

F2CLIB=-lf2c -lm -L${SERVERLIBDIR}
PGPLOTLIB=-lf2cpgplot52 -lX11 -L/usr/X11/lib -L$(SERVERLIBDIR)
#PGPLOTLIB=-lpg -lgrx20 
#CC=gcc
F2CFLAGS=-f -u
CFLAGS=-O2

GREBOBS=grepg.o grepg_message.o grepg_dopicks.o grepg_selstyle.o \
15
16
  grepg_phase.o grepg_phasewedg.o grepg_poly.o grepg_remavg.o \
  grepg_contr.o
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

make.incdep: *.f
	incdep > make.incdep

include make.incdep

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

%.o77: %.f
	g77 -O2 -o $@ -c $< -Wall -ffixed-line-length-0 -fno-backslash

32
.PHONY: clean
33
clean:
34
	-/bin/rm -v *.o *.bak *.o77
35
36
37
38
39
40
41
42
43
44

grepg77: $(GREBOBS:.o=.o77)
	g77 $(FLAGS) $^ -o $@ -ltf77 -lpgplot52 -lX11 \
        -L$(SERVERLIBDIR) -L$(LOCLIBDIR) -L/usr/X11/lib
	newprog $@

grepg: $(GREBOBS)
	$(CC) $(FLAGS) $(GREBOBS) -o grepg -ltf \
        $(PGPLOTLIB) $(F2CLIB) -L$(LOCLIBDIR)
	newprog grepg