1 mike 1.1 ################################################################################
2 ##
3 ## Get external environment variables. Note that all external environment
4 ## variables begin with "PEGASUS_".
5 ##
6 ################################################################################
7
|
8 mike 1.2 ifdef PEGASUS_HOME
9 HOME_DIR = $(subst \,/,$(PEGASUS_HOME))
|
10 mike 1.1 else
|
11 mike 1.2 ERROR = pegasus_home_undefined
12 pegasus_home_undefined:
|
13 mike 1.4 @ echo PEGASUS_HOME environment variable undefined
|
14 mike 1.2 @ exit 1
|
15 mike 1.1 endif
16
|
17 mike 1.8 VALID_PLATFORMS = win32_iX86_msvc linux_iX86_gnu
18
19 ifndef PEGASUS_PLATFORM
20 ERROR = pegasus_platform_undefined
21 pegasus_platform_undefined:
22 @ echo PEGASUS_PLATFORM environment variable undefined. Please set to\
23 one of the following: $(VALID_PLATFORMS)
24 @ exit 1
25 endif
26
|
27 mike 1.1 ################################################################################
28
|
29 mike 1.2 OBJ_DIR = $(HOME_DIR)/obj/$(DIR)
30 BIN_DIR = $(HOME_DIR)/bin
31 LIB_DIR = $(HOME_DIR)/lib
32 REPOSITORY_ROOT = $(HOME_DIR)
|
33 mike 1.1
|
34 bob 1.5 LEX = flex
35
36 YACC = bison
37
|
38 mike 1.8 ################################################################################
39 ##
40 ## Attempt to include a platform configuration file:
41 ##
42 ################################################################################
43
44 ifeq ($(PEGASUS_PLATFORM),win32_iX86_msvc)
45 include $(ROOT)/mak/config-$(PEGASUS_PLATFORM).mak
46 FOUND = true
47 endif
48
49 ifeq ($(PEGASUS_PLATFORM),linux_iX86_gnu)
50 include $(ROOT)/mak/config-$(PEGASUS_PLATFORM).mak
51 FOUND = true
52 endif
53
54 ifneq ($(FOUND),true)
55 ERROR = pegasus_unknown_platform
56 pegasus_unknown_platform:
57 @ echo PEGASUS_PLATFORM environment variable must be set to one of\
58 the following: $(VALID_PLATFORMS)
59 mike 1.8 @ exit 1
60 endif
|