version 1.3, 2001/02/05 02:31:34
|
version 1.12, 2001/05/20 20:33:57
|
|
|
## | ## |
################################################################################ | ################################################################################ |
| |
ifdef PEGASUS_OS_TYPE |
|
OS_TYPE = $(PEGASUS_OS_TYPE) |
|
else |
|
OS_TYPE = windows |
|
endif |
|
|
|
ifdef PEGASUS_HOME | ifdef PEGASUS_HOME |
HOME_DIR = $(subst \,/,$(PEGASUS_HOME)) | HOME_DIR = $(subst \,/,$(PEGASUS_HOME)) |
else | else |
ERROR = pegasus_home_undefined | ERROR = pegasus_home_undefined |
pegasus_home_undefined: | pegasus_home_undefined: |
@ $(ECHO) PEGASUS_HOME environment variable undefined |
@ echo PEGASUS_HOME environment variable undefined |
@ exit 1 | @ exit 1 |
endif | endif |
| |
ifdef PEGASUS_ACE_ROOT |
VALID_PLATFORMS = WIN32_IX86_MSVC LINUX_IX86_GNU AIX_RS_IBMCXX |
ACE_ROOT = $(subst \,/,$(PEGASUS_ACE_ROOT)) |
|
else |
ifndef PEGASUS_PLATFORM |
ERROR = pegasus_ace_root_undefined |
ERROR = pegasus_platform_undefined |
pegasus_ace_root_undefined: |
pegasus_platform_undefined: |
@ $(ECHO) PEGASUS_ACE_ROOT environment variable undefined |
@ echo PEGASUS_PLATFORM environment variable undefined. Please set to\ |
|
one of the following: $(VALID_PLATFORMS) |
@ exit 1 | @ exit 1 |
endif | endif |
| |
|
|
################################################################################ | ################################################################################ |
| |
OBJ_DIR = $(HOME_DIR)/obj/$(DIR) | OBJ_DIR = $(HOME_DIR)/obj/$(DIR) |
BIN_DIR = $(HOME_DIR)/bin | BIN_DIR = $(HOME_DIR)/bin |
LIB_DIR = $(HOME_DIR)/lib | LIB_DIR = $(HOME_DIR)/lib |
REPOSITORY_ROOT = $(HOME_DIR) |
REPOSITORY_ROOT = $(HOME_DIR)/repository |
| |
ifeq ($(OS_TYPE),windows) |
LEX = flex |
include $(ROOT)/mak/config-windows.mak |
|
else |
################################################################################ |
include $(ROOT)/mak/config-unix.mak |
## |
|
## Attempt to include a platform configuration file: |
|
## |
|
################################################################################ |
|
|
|
ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC) |
|
include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak |
|
FOUND = true |
|
endif |
|
|
|
ifeq ($(PEGASUS_PLATFORM),LINUX_IX86_GNU) |
|
include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak |
|
FOUND = true |
|
endif |
|
|
|
ifeq ($(PEGASUS_PLATFORM),AIX_RS_IBMCXX) |
|
include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak |
|
FOUND = true |
|
endif |
|
|
|
ifneq ($(FOUND),true) |
|
ERROR = pegasus_unknown_platform |
|
pegasus_unknown_platform: |
|
@ echo PEGASUS_PLATFORM environment variable must be set to one of\ |
|
the following: $(VALID_PLATFORMS) |
|
@ exit 1 |
endif | endif |