(file) Return to Makefile CVS log (file) Jump to this file's LXR Page (dir) Up to [CENS] / emstar

 1 jelson 1.1 #
 2 jelson 1.17 # CENS EmStar Repository Master Makefile
 3 jelson 1.1  #
 4 girod  1.57 # $Id: Makefile,v 1.56 2005/11/08 03:11:54 thanos Exp $
 5 jelson 1.1  #
 6             
 7 jelson 1.2  ################### NOTE!!!! ###########################
 8             ## Most of the time you want to edit the files called ##
 9 girod  1.18 ## 'BUILD' and Make.conf, NOT this Makefile.          ##
10 jelson 1.2  ########################################################
11             
12 girod  1.57 
13 girod  1.20 ## Sets user-modifiable variables
14             ## e.g. enable TOS, Kernel, native kernel headers, etc
15 girod  1.18 include Make.conf
16 girod  1.29 
17 girod  1.57 ifeq ($(ARCH),)
18             IS_NATIVE=1
19 girod  1.29 endif
20             
21 girod  1.57 include make/make.tinyos
22 girod  1.29 
23 jelson 1.7  # Set platform-dependent variables.  Including this fragment sets:
24             #  ARCH -- the target architecture (e.g., arm-linux or i686-linux)
25             #  NATIVE_ARCH -- the architecture we're compiling under
26             #  CC, CPP, AR, LD, BINSTRIP -- paths to various utils
27             include make/make.platform
28 jelson 1.1  OBJDIR := obj.$(ARCH)
29 mlukac 1.43 
30 jelson 1.12 # the default target
31 girod  1.57 .DEFAULT default:
32             	@make -f Makefile.main $0
33 jelson 1.12 
34             clean:
35 girod  1.57 	if [[ ! ( . -ef ./$(OBJDIR) ) ]] ; then rm -rf ./$(OBJDIR) ; fi
36             ifeq ($(strip $(IS_NATIVE)), 1)
37             	rm -f config.make	
38             	rm -f make/config.h
39             endif
40 girod  1.18 
41             ##
42             ##  The 'help' target.
43             ##  This target provides info about what vars are set and
44             ##  what platforms are available
45             ##
46             
47             # For debugging purposes, a rule that shows the environment
48             # and active variables..
49             help:
50             	@echo Help:
51             	@echo " make ARCH=<platform> [executable path]"
52             	@echo 
53             	@echo " EmStar supports the following platforms:"
54             	@echo 
55             	@echo "  i686-linux (default) is the 'native' platform"
56             	@echo "    used to buld to run on your host.  Check Make.conf"
57             	@echo "    to locally customize the native platform."
58             	@echo 
59             	@echo "  arm-linux builds for iPAQ"
60 eugene 1.31 	@echo "  ipaq-sa builds for all StrongARM-based iPAQs (Familiar)"
61 girod  1.26 	@echo "  stargate builds for Stargate release 7"
62             	@echo "  stargate-ucla builds for Stargate UCLA release 5"
63 girod  1.18 	@echo "  pasta builds for PASTA"
64 girod  1.34 	@echo "  ilense-104 builds for the ilense testbed"
65 girod  1.18 	@echo 
66 girod  1.42 	@echo "  mica, mica2, mica2dot, cricket, micaz, telos build Mote targets"
67 girod  1.18 	@echo 
68             	@echo Environment:
69             	@echo " NATIVE_KCFLAGS=$(NATIVE_KCFLAGS)"
70 girod  1.29 	@echo " PKG_CONFIG_PATH=$(PKG_CONFIG_PATH)"
71             	@echo " GLIB_PATH=$(GLIB_PATH)"
72 girod  1.26 	@echo " USE_SHARED='$(USE_SHARED)'"
73             	@echo " BUILD_EMTOS='$(BUILD_EMTOS)'"
74 girod  1.21 	@echo " TOSDIR=$(TOSDIR)"
75             	@echo " TOS_CONTRIB=$(TOS_CONTRIB)"
76             	@echo " MAKERULES=$(MAKERULES)"
77 girod  1.18 	@echo " NESC_DIR=$(NESC_DIR)"
78             	@echo " AVR_DIR=$(AVR_DIR)"
79             

CENS CVS Mailing List
Powered by
ViewCVS 0.9.2