1 | # $Id: Makefile.kmk 3223 2007-04-29 18:02:22Z bird $
|
---|
2 |
|
---|
3 | DEPTH = ../../..
|
---|
4 | include $(PATH_KBUILD)/header.kmk
|
---|
5 | GMAKE ?= $(PATH_KBUILD_BIN)/kmk_gmake$(HOSTSUFF_EXE)
|
---|
6 |
|
---|
7 |
|
---|
8 | EXTRAS :=
|
---|
9 | ifndef NOT_BOOTSTRAPPING_KNIX
|
---|
10 | EXTRAS := -Dgmake=$(GMAKE) \
|
---|
11 | -Dmake=$(GMAKE)
|
---|
12 | endif
|
---|
13 | ifeq ($(BUILD_TYPE),debug)
|
---|
14 | EXTRAS += -Doptimize='-g'
|
---|
15 | endif
|
---|
16 |
|
---|
17 | ifdef PERL_SH_DIR
|
---|
18 | $(error This is gonna cause trouble: PERL_SH_DIR=$(PERL_SH_DIR))
|
---|
19 | endif
|
---|
20 |
|
---|
21 | #
|
---|
22 | # The usual targets.
|
---|
23 | #
|
---|
24 |
|
---|
25 | # configuring
|
---|
26 | .PHONY: config
|
---|
27 | config:
|
---|
28 | $(RM) -f config.sh Policy.sh
|
---|
29 | EMXSHELL="$(ASH)" \
|
---|
30 | ./Configure -des \
|
---|
31 | -Dprefix=/@unixroot/usr \
|
---|
32 | -Dvendorprefix=/@unixroot/usr \
|
---|
33 | -Dsiteprefix=/@unixroot/usr \
|
---|
34 | -Dscriptdir=/@unixroot/usr/bin \
|
---|
35 | -Dman1dir=/@unixroot/usr/share/man/man1 \
|
---|
36 | -Dman3dir=/@unixroot/usr/share/man/man3 \
|
---|
37 | -Dinstallman1dir=/@unixroot/usr/share/man/man1 \
|
---|
38 | -Dinstallman3dir=/@unixroot/usr/share/man/man3 \
|
---|
39 | -Dpager=/@unixroot/usr/bin/less.exe \
|
---|
40 | $(EXTRAS) \
|
---|
41 | -Dd_dirfd='undef' \
|
---|
42 | -Dcf_by='kNIX'
|
---|
43 |
|
---|
44 | # building
|
---|
45 | .PHONY: build
|
---|
46 | build:
|
---|
47 | +$(GMAKE) MAKE=$(GMAKE)
|
---|
48 |
|
---|
49 | # testing
|
---|
50 | .PHONY: check test
|
---|
51 | check test:
|
---|
52 | +$(GMAKE) MAKE=$(GMAKE) test
|
---|
53 |
|
---|
54 | # installation
|
---|
55 | .PHONY: install
|
---|
56 | install:
|
---|
57 | +$(GMAKE) MAKE=$(GMAKE) \
|
---|
58 | INSTALLPREFIXEXP=$(PATH_INS)/usr \
|
---|
59 | bin=$(PATH_INS)/usr/bin \
|
---|
60 | scriptdir=$(PATH_INS)/usr/bin \
|
---|
61 | shrpdir=$(PATH_INS)/usr/lib/perl5/5.8.8/os2/CORE \
|
---|
62 | privlib=$(PATH_INS)/usr/lib/perl5/5.8.8 \
|
---|
63 | man1dir=$(PATH_INS)/usr/share/man/man1 \
|
---|
64 | man3dir=$(PATH_INS)/usr/share/man/man3 \
|
---|
65 | \
|
---|
66 | DESTDIR=$(PATH_INS) \
|
---|
67 | INSTALLFLAGS="-V" \
|
---|
68 | \
|
---|
69 | install
|
---|
70 | # packing
|
---|
71 | .PHONY: pass_packing
|
---|
72 | pass_packing: defaultpacking
|
---|
73 |
|
---|
74 |
|
---|
75 | #
|
---|
76 | # perl specific.
|
---|
77 | #
|
---|
78 |
|
---|
79 | .PHONY: depend
|
---|
80 | depend:
|
---|
81 | $(RMDIR) $(wildcard .depending ./*/.depending ./*/*/.depending ./*/*/*/.depending)
|
---|
82 | +$(GMAKE) MAKE=$(GMAKE) depend
|
---|
83 |
|
---|