1 mike 1.1 ################################################################################
2 ##
3 ## Get external environment variables. Note that all external environment
4 ## variables begin with "PEGASUS_".
5 ##
6 ################################################################################
7
8 ifdef PEGASUS_OS_TYPE
9 OS_TYPE = $(PEGASUS_OS_TYPE)
10 else
11 OS_TYPE = windows
12 endif
13
14 ifdef PEGASUS_BUILD
15 BUILD_DIR = $(subst \,/,$(PEGASUS_BUILD))
16 else
17 BUILD_DIR = $(ROOT)/build
18 endif
19
20 ifdef PEGASUS_ACE_ROOT
21 ACE_ROOT = $(subst \,/,$(PEGASUS_ACE_ROOT))
22 mike 1.1 else
23 ERROR = PEGASUS_ACE_ROOT_UNDEFINED
24 PEGASUS_ACE_ROOT_UNDEFINED:
25 @ echo PEGASUS_ACE_ROOT environment variable undefined
26 @ exit 1
27 endif
28
29
30 ################################################################################
31
32 OBJ_DIR = $(BUILD_DIR)/obj/$(DIR)
33 BIN_DIR = $(BUILD_DIR)/bin
34 LIB_DIR = $(BUILD_DIR)/lib
35 REPOSITORY_ROOT = $(BUILD_DIR)
36
37 ifeq ($(OS_TYPE),windows)
38 include $(ROOT)/mak/config-windows.mak
39 else
40 include $(ROOT)/mak/config-unix.mak
41 endif
|