2
2
# -*- mode: makefile; coding: utf-8 -*-
3
# Copyright © 2003 Jonas Smedegaard <dr@jones.dk>
3
# Copyright © 2003-2005 Jonas Smedegaard <dr@jones.dk>
5
ifneq (,$(findstring update,$(DEB_BUILD_OPTIONS)))
6
DEB_AUTO_UPDATE_DEBIAN_CONTROL = 1
8
ifneq (,$(findstring init,$(DEB_BUILD_OPTIONS)))
9
#DEB_AUTO_UPDATE_ACLOCAL = 1.9
10
#DEB_AUTO_UPDATE_AUTOHEADER = 2.50
11
#DEB_AUTO_UPDATE_AUTOCONF = 2.50
14
include /usr/share/cdbs/1/class/autotools.mk
15
include /usr/share/cdbs/1/rules/debhelper.mk
16
include /usr/share/cdbs/1/rules/simple-patchsys.mk
17
include debian/cdbs/1/rules/buildinfo.mk
5
19
DEB_SRCDIR = src/Unix
7
include /usr/share/cdbs/1/rules/debhelper.mk
9
# Use autotools-vars.mk from CVS to avoid cross-compiling on same host
10
include debian/cdbs/autotools-vars.mk
12
include /usr/share/cdbs/1/class/autotools.mk
14
DEB_CONFIGURE_USER_FLAGS = --enable-xf86-dga --disable-fbdev-dga
20
DEB_CONFIGURE_USER_FLAGS = --disable-rpath --enable-sdl-video --enable-sdl-audio
22
# JIT compiler only supported on i386 and ia64
23
#DEB_CONFIGURE_USER_FLAGS += --enable-jit-compiler
25
# Hmm - fumbling around to attempt making this damned package compile properly...
26
#CFLAGS += -fsigned-char
27
#CXXFLAGS += -fsigned-char
29
# Suppress excess and seemingly non-fatal warnings
30
CFLAGS += -Wno-unused-variable -Wno-unused-label -Wno-missing-braces -Wno-parentheses
31
CXXFLAGS += -Wno-unused-variable -Wno-unused-label -Wno-missing-braces -Wno-parentheses
16
33
# Don't know why, but upstream added this and it seems to be needed
17
34
#CXXFLAGS += -fno-merge-constants
24
41
DEB_MAKE_CHECK_TARGET :=
26
43
DEB_INSTALL_DOCS_ALL += TECH
28
binary-predeb/basilisk2::
31
# These are only used manually to (re)generate/remove automade files.
32
DEB_PHONY_RULES += ultraclean autogen
44
DEB_INSTALL_CHANGELOGS_ALL = ChangeLog.cvs
45
DEB_INSTALL_EXAMPLES_basilisk2 = $(DEB_SRCDIR)/Linux/* $(DEB_SRCDIR)/tunconfig
47
# tunconfig will be installed as example file only
48
common-binary-post-install-arch::
49
rm -f debian/$(cdbs_curpkg)/usr/share/BasiliskII/tunconfig
51
# Initialize autotools in CVS snapshot
52
## FIXME: For some odd reason config.h gets deleted so these needs to
53
## run at every build instead of once :-(
54
ifneq (,$(findstring init,$(DEB_BUILD_OPTIONS)))
55
pre-build clean:: $(DEB_SRCDIR)/configure
57
$(DEB_SRCDIR)/configure: autogen
34
60
-$(MAKE) -C src/Unix distclean
35
cd src/Unix && rm -f config.h.in aclocal.m4 configure config.log ltmain.sh missing
36
cd src/Unix && rm -rf autom4te.cache
61
cd $(DEB_SRCDIR) && rm -f config.h.in aclocal.m4 configure config.log ltmain.sh missing
62
cd $(DEB_SRCDIR) && rm -rf autom4te.cache
38
64
autogen: ultraclean
39
cd src/Unix && NO_CONFIGURE=naturligvis ./autogen.sh
65
cd $(DEB_SRCDIR) && autoreconf -i -v
67
DEB_PHONY_RULES += ultraclean autogen