(file) Return to config.mak CVS log (file) (dir) Up to [Pegasus] / pegasus / mak

 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.9 VALID_PLATFORMS = WIN32_IX86_MSVC LINUX_IX86_GNU
18 mike  1.8 
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 mike  1.9 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
45             include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
46 mike  1.8   FOUND = true
47           endif
48           
49 mike  1.9 ifeq ($(PEGASUS_PLATFORM),LINUX_IX86_GNU)
50             include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak
51 mike  1.8   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           	@ exit 1
60           endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2