File: Makefile

package info (click to toggle)
estscan 3.0.3-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 304 kB
  • sloc: ansic: 2,272; perl: 1,879; fortran: 130; makefile: 58
file content (39 lines) | stat: -rw-r--r-- 735 bytes parent folder | download | duplicates (2)
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
28
29
30
31
32
33
34
35
36
37
38
39
# $Id: Makefile,v 1.1 2006/05/01 09:22:58 c4chris Exp $
# Set the appropriate compilers and options for your system:
# Any system with GNU compilers:
 CC = gcc
 CFLAGS ?= -O2
 F77 = gfortran
 FFLAGS ?= -O2
 LDLIBS = -lm

# Linux with Intel compilers:
# CC = icc
# CFLAGS = -O3 -ipo -axP
# F77 = ifort
# FFLAGS = -O3 -ipo -axP

PROGS=maskred makesmat estscan winsegshuffle

all: $(PROGS)

clean:
	\rm -f *~ $(PROGS) *.o

maskred: maskred.o
	$(CC) $(LDFLAGS) -o $@ $< $(LDLIBS)

makesmat: makesmat.o
	$(CC) $(LDFLAGS) -o $@ $< $(LDLIBS)

estscan: estscan.o
	$(CC) $(LDFLAGS) -o $@ $< $(LDLIBS)

winsegshuffle: winsegshuffle.o
	$(F77) $(LDFLAGS) -o $@ $< $(LDLIBS)

.c.o:
	$(CC) $(CPPFLAGS) $(CFLAGS) -c $<

.f.o:
	$(F77) $(FFLAGS) -c $<