File: makefile.in

package info (click to toggle)
galois 0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 948 kB
  • sloc: cpp: 4,075; xml: 2,325; makefile: 146
file content (70 lines) | stat: -rw-r--r-- 2,054 bytes parent folder | download
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
# makefile -- makefile for galois source directory.
# Copyright (C) 2012-2015 Gerardo Ballabio
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

# @configure_input@

prefix = ${DESTDIR}@prefix@

CXX = @CXX@
CXXFLAGS = @CXXFLAGS@
PKG_CONFIG = @PKG_CONFIG@
GTKMM_CFLAGS = `${PKG_CONFIG} --cflags gtkmm-3.0`
GTKMM_LIBS = `${PKG_CONFIG} --libs gtkmm-3.0`
XMLPP_CFLAGS = `${PKG_CONFIG} --cflags libxml++-2.6`
XMLPP_LIBS = `${PKG_CONFIG} --libs libxml++-2.6`

EXE = galois
AC = makefile
BAK = *~

OBJS = area.o board.o cube.o group.o hexagon.o main.o preferences.o \
       scores.o square.o triangle.o

.SUFFIXES : .cc .o

.cc.o :
	${CXX} ${CXXFLAGS} -c $< ${GTKMM_CFLAGS} ${XMLPP_CFLAGS}

default: galois
all : ${EXE}
galois : ${OBJS}
	${CXX} ${CXXFLAGS} ${OBJS} -o $@ ${GTKMM_LIBS} ${XMLPP_LIBS}

# other targets
clean :
	- rm -f ${OBJS} ${EXE} ${BAK}
distclean : clean
	- rm -f ${AC}

install : galois
	mkdir -p ${prefix}/games
	cp galois ${prefix}/games
uninstall :
	- rm -f ${prefix}/games/galois

# dependencies
area.o : area.h grid.h group.h
blocks.o : grid.h group.h hexagon.h square.h triangle.h
board.o : board.h grid.h group.h
cube.o : grid.h group.h cube.h
group.o : grid.h group.h
hexagon.o : grid.h group.h hexagon.h
main.o : area.h board.h cube.h grid.h group.h hexagon.h main.h \
         preferences.h scores.h square.h triangle.h
preferences.o : preferences.h
scores.o : scores.h
square.o : grid.h group.h square.h
triangle.o : grid.h group.h triangle.h