[go: up one dir, main page]

Menu

[190a4b]: / lib / Makefile.in  Maximize  Restore  History

Download this file

105 lines (85 with data), 3.2 kB

  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
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
# @configure_input@
# Makefile for the libqubist library in the Qubist project.
#
# Copyright © 2012,2013 Kevin O'Gorman <kogorman@gmail.com>
# Distributed under the GNU General Public License
#
# Last Modified: Wed Dec 24 18:10:33 PST 2014</pre>
# @author Kevin O'Gorman
#
# This file is part of libqubist, the library of functions for playing
# 4x4x4 tic-tac-toe, also known by some other names outside the USA.
#
# Qubist 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 2 of the License, or
# (at your option) any later version.
#
# Qubist 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/>.
#
# This is lib/Makefile
# all variables and such are inherited from the main make.
# VPATH-specific substitution variables
srcdir = @srcdir@
VPATH = @srcdir@
# Package-related substitution variables
package = @PACKAGE_NAME@
version = @PACKAGE_VERSION@
tarname = @PACKAGE_TARNAME@
distdir = $(tarname)-$(version)
# Prefix-related substitution variables; you can override on the command-line
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = $(exec_prefix)/games
libdir = @exec_prefix@
datarootdir = @datarootdir@
mandir = @mandir@
man6dir = $(mandir)/man6
manext = .1
man6ext = .6
# Tool-related substitution variables
CC = gcc
DEFS = @DEFS@
CFLAGS ?= -Wall -g -O2
CFLAGS += -D_FILE_OFFSET_BITS=64
CFLAGS += -I$(srcdir)/../include -I$(srcdir)/..
CFLAGS += $(DEFS)
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
# Targets
ALL = libqubist.a
all: autodeps $(ALL)
LIBSRC = board.c square.c row.c plane.c iso.c isoplane.c base64.c strat.c cache.c
LIBOBJS = board.o square.o row.o plane.o iso.o isoplane.o base64.o strat.o cache.o
# This may be less than ideal:
# see http://www.gnu.org/software/make/manual/html_node/Automatic-Prerequisites.html
# However, a quick attempt to use this idea failed on 8 Dec 2012, and we're doing it the hard way
include autodeps
autodeps: $(LIBSRC)
gcc -MM -I$(srcdir)/../include -I$(srcdir)/.. $(srcdir)/*.c >$@
libqubist.a: $(LIBOBJS)
ar -r $@ $^
install_reg:
@INSTALL@ -d $(DESTDIR)$(libdir)
@INSTALL_DATA@ libqubist.a $(DESTDIR)$(libdir)
install: install_reg
uninstall_reg:
-rm -f $(DESTDIR)$(libdir)/libqubist.a
uninstall: uninstall_reg
clean:
rm -f $(ALL) *.o *.a
rm -rf .deps
distclean: clean
rm -f Makefile configure
board.o: board.c
$(CC) $(CFLAGS) -Wno-unused-but-set-variable -c -o $@ $<
.PHONY: all clean distclean check install install_reg uninstall uninstall_reg autodeps
# vim: set expandtab autoindent shiftround nosmartindent tabstop=8 softtabstop=2 shiftwidth=2: