-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
84 lines (68 loc) · 2.91 KB
/
Makefile
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# RPNcalc Makefile
# ****************************************************************************
# * *
# * The use of this Makefile is now deprecated. A cmake build system is now *
# * available, it can find the needed programs and libraries automatically. *
# * This Makefile may be deleted at some point. *
# * *
# ****************************************************************************
# Where to install everything.
# The binaries will go into $(PREFIX)/bin
# The desktop file into $(PREFIX)/share/applications
# The man page into $(PREFIX)/share/man/man1
# The text & pdf documents into $(PREFIX)/share/doc/rpncalc
PREFIX=/usr/local
# Which GTK library to use (set this to 2 or 3)
GTKVER=2
# Fortran compiler. For gfortran it must be at least a v4.6 snapshot.
# If you have that and an earlier distribution version, then you can specify a
# full path here.
FC=gfortran
# Choose compile flags according to whether you want a debug or optimized build
FFLAGS_T=-O3
#FFLAGS_T=-g -Wall -Wno-unused-dummy-argument
# On some 64-bit systems when gfortran is from a binary snapshot, there is an
# error searching for libquadmath. If this happens to you, then uncomment the
# non-empty value and replace /opt with wherever you unpacked the tarball.
QUADLIB=
#QUADLIB=-Xlinker -R/opt/gcc-trunk/lib64
# Name extension (the executable becomes rpncalc$(NAME_SUFFIX))
# This would allow you to have both GTK2 & GTK3 versions to compare.
NAME_SUFFIX=
##############################################################
# You shouldn't normally need to change anything below here. #
##############################################################
SUBDIRS=docs src
CLNSUBDIRS=src
all:
@echo "WARNING: Use of this Makefile is deprecated, please use"
@echo " the cmake system in a dedicated build directory"
@echo " see the file INSTALL in this directory for details"
@echo " if you absolutely need to use this form, use"
@echo " make old"
@echo " to build the system."
old:
for dir in $(SUBDIRS); do \
$(MAKE) $(MFLAGS) -C $$dir "PREFIX=$(PREFIX)" \
"FC=$(FC)" "QUADLIB=$(QUADLIB)" "GTKVER=$(GTKVER)" \
"FFLAGS_T=$(FFLAGS_T)" "NAME_SUFFIX=$(NAME_SUFFIX)"; \
done
install:
for dir in $(SUBDIRS); do \
$(MAKE) $(MFLAGS) -C $$dir "PREFIX=$(PREFIX)" \
"FC=$(FC)" "QUADLIB=$(QUADLIB)" "GTKVER=$(GTKVER)" \
"FFLAGS_T=$(FFLAGS_T)" "NAME_SUFFIX=$(NAME_SUFFIX)" install; \
done
clean:
for dir in $(CLNSUBDIRS); do \
$(MAKE) $(MFLAGS) -C $$dir "NAME_SUFFIX=$(NAME_SUFFIX)" clean; \
done
clean-all:
for dir in $(SUBDIRS); do \
$(MAKE) $(MFLAGS) -C $$dir "NAME_SUFFIX=$(NAME_SUFFIX)" clean; \
done
uninstall:
for dir in $(SUBDIRS); do \
$(MAKE) $(MFLAGS) -C $$dir "PREFIX=$(PREFIX)" \
"NAME_SUFFIX=$(NAME_SUFFIX)" uninstall; \
done