version 1.4, 2001/02/11 05:45:33
|
version 1.8, 2001/04/13 21:45:00
|
|
|
## | ## |
################################################################################ | ################################################################################ |
| |
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/config-$(PEGASUS_PLATFORM).mak |
|
FOUND = true |
|
endif |
|
|
|
ifeq ($(PEGASUS_PLATFORM),linux_iX86_gnu) |
|
include $(ROOT)/mak/config-$(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 |