version 1.4, 2001/02/11 05:45:33
|
version 1.9, 2001/04/13 22:19:30
|
|
|
## | ## |
################################################################################ | ################################################################################ |
| |
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 |
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) |
|
|
LIB_DIR = $(HOME_DIR)/lib | LIB_DIR = $(HOME_DIR)/lib |
REPOSITORY_ROOT = $(HOME_DIR) | REPOSITORY_ROOT = $(HOME_DIR) |
| |
ifeq ($(OS_TYPE),windows) |
LEX = flex |
include $(ROOT)/mak/config-windows.mak |
|
else |
YACC = bison |
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 |
|
|
|
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 |