-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile.i386
58 lines (58 loc) · 1.28 KB
/
Makefile.i386
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# CHOOCH Makefile
# Created on Oct 30 1999 by Gwyndaf Evans
#
# Edit the three first directory definitions to specify
# a) Edit the host type
# b) the directory where GSL (Gnu Scientific Library) is kept
# c) the directory where PLplot plotting library is kept
# d) and the directory where you would like you executables to go (BINDIR).
#
ARCH = i386
#
PLPLOTLIBDIR = /home/ge73/software/lib
GSLDIR = /usr/lib64
X11LIBDIR = /usr/lib64
#BINDIR = /home/gwyndaf/bin
######################################
#
VERSION = 5.0.9
LIBS = -lgsl -lgslcblas -lX11
PLLIBS= -lplplotd
PLINCLUDE=/home/ge73/software/include/plplot
EXE = chooch-$(VERSION).$(ARCH)
#
#
FOPTIM = -O2
FFLAGS = $(FOPTIM)
LDFLAGS = -L$(GSLDIR) -L$(PLPLOTLIBDIR) $(PLLIBS) -L$(X11LIBDIR) $(LIBS) -lm -ldl -lpthread
CFLAGS = -I$(PLINCLUDE) -D$(ARCH)
CC = gcc
#
#
# Basic definitions
#
RM = /bin/rm
MV = /bin/mv
CP = /bin/cp
#
#
OBJECTS = checks.o fits.o minmax.o plpng.o smooth.o \
chooch.o fluread.o mucal.o printbanner.o toplot.o \
copyright.o integrate.o normalize.o savwin.o usage.o \
fdprime.o license.o parse.o selwavel.o
#
#
chooch : clean ${OBJECTS} Makefile
$(CC) -o ${EXE} ${OBJECTS} $(LDFLAGS)
#
all: chooch
#
install :
$(MV) $(EXE) $(BINDIR)
$(MV) $(EXEPG) $(BINDIR)
#
clean :
${RM} -f *.o
#
# End
#