version 1.5, 2001/03/04 21:36:38
|
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 |
|
|
@ 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 |
| |
LEX = flex | LEX = flex |
| |
YACC = bison |
################################################################################ |
|
## |
|
## Attempt to include a platform configuration file: |
|
## |
|
################################################################################ |
|
|
|
ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC) |
|
include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak |
|
FOUND = true |
|
endif |
| |
ifeq ($(OS_TYPE),windows) |
ifeq ($(PEGASUS_PLATFORM),LINUX_IX86_GNU) |
include $(ROOT)/mak/config-windows.mak |
include $(ROOT)/mak/platform_$(PEGASUS_PLATFORM).mak |
else |
FOUND = true |
include $(ROOT)/mak/config-unix.mak |
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 |