version 1.7, 2001/04/13 20:54:15
|
version 1.8, 2001/04/13 21:45:00
|
|
|
@ exit 1 | @ exit 1 |
endif | endif |
| |
|
VALID_PLATFORMS = win32_iX86_msvc linux_iX86_gnu |
|
|
|
ifndef PEGASUS_PLATFORM |
|
ERROR = pegasus_platform_undefined |
|
pegasus_platform_undefined: |
|
@ echo PEGASUS_PLATFORM environment variable undefined. Please set to\ |
|
one of the following: $(VALID_PLATFORMS) |
|
@ exit 1 |
|
endif |
|
|
################################################################################ | ################################################################################ |
| |
OBJ_DIR = $(HOME_DIR)/obj/$(DIR) | OBJ_DIR = $(HOME_DIR)/obj/$(DIR) |
|
|
| |
YACC = bison | YACC = bison |
| |
include $(ROOT)/mak/config-platform.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 |