|
root / base / usr / src / lib / libxml2
libxml2 Plain Text 58 lines 1.0 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
#
# Copyright 2026 Zygaena Project
#
# Hammerhead: libxml2 2.13.5 autotools wrapper
#

include ../../Makefile.master

unexport LD_ALTEXEC

CONTRIBDIR = $(CONTRIB)/libxml2
BUILDDIR = $(CURDIR)/build

CC = $(GNUC_ROOT)/bin/gcc

CONFIGURE_FLAGS = \
	--prefix=/usr \
	--libdir=/usr/lib \
	--includedir=/usr/include \
	--without-python \
	--without-lzma \
	--without-zlib \
	--without-icu \
	--without-http \
	--without-ftp \
	--without-legacy \
	--without-history \
	--without-readline \
	--disable-static \
	--enable-shared

CONFIGURE_ENV = \
	CC="$(CC)" \
	CFLAGS="-m64 -O2" \
	LDFLAGS="-m64"

all: $(BUILDDIR)/Makefile
	$(MAKE) -C $(BUILDDIR) -j4

$(BUILDDIR)/Makefile: $(CONTRIBDIR)/configure
	mkdir -p $(BUILDDIR)
	cd $(BUILDDIR) && $(CONFIGURE_ENV) $(CONTRIBDIR)/configure \
		--build=x86_64-pc-solaris2.11 --host=x86_64-pc-solaris2.11 \
		--disable-maintainer-mode \
		$(CONFIGURE_FLAGS)

install: all
	DESTDIR=$(ROOT) $(MAKE) -C $(BUILDDIR) install

clean:
	$(RM) -r $(BUILDDIR)

clobber: clean

install_h:

.PHONY: all install clean clobber install_h