|
version 1.57, 2006/01/27 05:04:57
|
version 1.58, 2006/01/27 06:14:31
|
|
|
|
| ## e.g. enable TOS, Kernel, native kernel headers, etc | ## e.g. enable TOS, Kernel, native kernel headers, etc |
| include Make.conf | include Make.conf |
| | |
| |
## If this is the native arch, include config.make |
| |
ifeq ($(strip $(ARCH)),i686-linux) |
| |
IS_NATIVE=1 |
| |
else |
| ifeq ($(ARCH),) | ifeq ($(ARCH),) |
| IS_NATIVE=1 | IS_NATIVE=1 |
| endif | endif |
| |
endif |
| | |
| include make/make.tinyos | include make/make.tinyos |
| | |
|
|
|
| OBJDIR := obj.$(ARCH) | OBJDIR := obj.$(ARCH) |
| | |
| # the default target | # the default target |
| .DEFAULT default: |
.DEFAULT default: config.make |
| @make -f Makefile.main $0 | @make -f Makefile.main $0 |
| | |
| clean: | clean: |
|
|
|
| # and active variables.. | # and active variables.. |
| help: | help: |
| @echo Help: | @echo Help: |
| |
@echo "" |
| @echo " make ARCH=<platform> [executable path]" | @echo " make ARCH=<platform> [executable path]" |
| |
@echo " Builds specified file or all executables and libraries" |
| @echo | @echo |
| |
@echo " make clean ARCH=<platform>" |
| |
@echo " deletes all built files." |
| |
@echo "" |
| |
@echo " make strip ARCH=<platform>" |
| |
@echo " strips symbols from all executables." |
| |
@echo "" |
| |
@echo " make help -- provides this message" |
| |
@echo "" |
| |
@echo " make config -- runs configure for native platform" |
| |
@echo "" |
| @echo " EmStar supports the following platforms:" | @echo " EmStar supports the following platforms:" |
| @echo | @echo |
| @echo " i686-linux (default) is the 'native' platform" | @echo " i686-linux (default) is the 'native' platform" |
| @echo " used to buld to run on your host. Check Make.conf" | @echo " used to buld to run on your host. Check Make.conf" |
| @echo " to locally customize the native platform." | @echo " to locally customize the native platform." |
| @echo | @echo |
| @echo " arm-linux builds for iPAQ" |
|
| @echo " ipaq-sa builds for all StrongARM-based iPAQs (Familiar)" |
|
| @echo " stargate builds for Stargate release 7" | @echo " stargate builds for Stargate release 7" |
| |
@echo " nims-stargate builds for Slauson platform" |
| |
@echo " arm-linux builds for iPAQ" |
| |
@echo |
| @echo " stargate-ucla builds for Stargate UCLA release 5" | @echo " stargate-ucla builds for Stargate UCLA release 5" |
| |
@echo " ipaq-sa builds for all StrongARM-based iPAQs (Familiar)" |
| @echo " pasta builds for PASTA" | @echo " pasta builds for PASTA" |
| @echo " ilense-104 builds for the ilense testbed" | @echo " ilense-104 builds for the ilense testbed" |
| @echo | @echo |
| @echo " mica, mica2, mica2dot, cricket, micaz, telos build Mote targets" |
@echo " mica, mica2, mica2dot, cricket, micaz, telos" |
| |
@echo " build Mote targets" |
| @echo | @echo |
| @echo Environment: | @echo Environment: |
| @echo " NATIVE_KCFLAGS=$(NATIVE_KCFLAGS)" | @echo " NATIVE_KCFLAGS=$(NATIVE_KCFLAGS)" |
|
|
|
| @echo " NESC_DIR=$(NESC_DIR)" | @echo " NESC_DIR=$(NESC_DIR)" |
| @echo " AVR_DIR=$(AVR_DIR)" | @echo " AVR_DIR=$(AVR_DIR)" |
| | |
| |
configure: |
| |
@echo "Running autoconf..." |
| |
autoconf |
| |
|
| |
config make/config.h: configure |
| |
@echo "Running ./configure..." |
| |
@./configure || ( echo "Configure failed."; exit 1 ) |
| |
|
| |
ifeq ($(strip $(IS_NATIVE)), 1) |
| |
config.make: make/config.h |
| |
@echo "Building config.make..." |
| |
perl make/htosh.pl $(PWD) |
| |
else |
| |
config.make: |
| |
@true |
| |
endif |