-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathmakefile
80 lines (59 loc) · 2 KB
/
makefile
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
# /*++
#
# Copyright (c) 2006 Microsoft Corporation. All rights reserved.
#
# The use and distribution terms for this software are contained in the file
# named license.txt, which can be found in the root of this distribution.
# By using this software in any fashion, you are agreeing to be bound by the
# terms of this license.
#
# You must not remove this notice, or any other, from this software.
#
#
# Module Name : makefile
#
# This file is NOT generated
#
# --*/
SHELL = /bin/bash
.PHONY: all configure configure_onlythis preconfigure_onlythis clean_configure_onlythis clean_configure clean check_env
all: check_env
cd obj${BUILD_ALT_DIR}/${_BUILDARCH} && \
${MAKE} all
configure: check_env configure_onlythis
cd pal/${PAL_UNIX_DIR} && ${MAKE} configure
configure_onlythis: preconfigure_onlythis
if test X"${USE_VAC_CC}" = "X1"; \
then \
EXTRA_CONFIGURE_FLAGS="--with-vac"; \
else \
EXTRA_CONFIGURE_FLAGS= ;\
fi; \
if test "${NTDEBUG}" = "ntsdnodbg"; \
then \
EXTRA_CONFIGURE_FLAGS=$${EXTRA_CONFIGURE_FLAGS}" --disable-debug"; \
fi; \
cd obj${BUILD_ALT_DIR}/${_BUILDARCH} && \
if [ ! -f ${ROTOR_DIR}/obj${BUILD_ALT_DIR}/${_BUILDARCH}/config.status ]; \
then \
./configure --srcdir=${ROTOR_DIR} $${EXTRA_CONFIGURE_FLAGS} > build${BUILD_ALT_DIR}_${_BUILDARCH}.log 2>&1; \
fi
preconfigure_onlythis:
mkdir -p ./obj${BUILD_ALT_DIR}/${_BUILDARCH}
if [ -f ./obj${BUILD_ALT_DIR}/${_BUILDARCH}/configure ]; then \
rm -f ./obj${BUILD_ALT_DIR}/${_BUILDARCH}/configure;\
fi
cp -f configure ./obj${BUILD_ALT_DIR}/${_BUILDARCH}/configure
clean_configure_onlythis:
rm -f ./obj${BUILD_ALT_DIR}/${_BUILDARCH}/config.status
clean_configure: clean_configure_onlythis
cd pal/${PAL_UNIX_DIR} && ${MAKE} clean_configure
clean: check_env
cd obj${BUILD_ALT_DIR}/${_BUILDARCH} && ${MAKE} clean
cd pal/${PAL_UNIX_DIR} && ${MAKE} clean \
check_env:
if test X"${_NTTREE}" = "X"; \
then \
echo "ERROR: Set environment before running this."; \
exit 1; \
fi