Commits

Anders Hammarquist  committed 9eb3b4a

cleanup Makefile

  • Participants
  • Parent commits f62cd62

Comments (0)

Files changed (1)

 # TIVA_ROOT is really the older stellaris library, as the cc3000 code is
 # not compatible with the newer tiva library. Hungarian notation for the win!
 TIVA_ROOT=/home/iko/src/arm/stellaris
-ROOT=/home/iko/src/arm/cc3000/basic_wifi_gcc
+ROOT:=$(CURDIR)
 VERBOSE=1
 DEBUG=1
 
 # tell newlib we don't want sockets, also tell what target our part is
 CFLAGSgcc=-DTARGET_IS_BLIZZARD_RA1 -D_POSIX_SOURCE
 
+# export to sub makes
+export DEBUG PART VARIANT CFLAGSgcc ROOT TIVA_ROOT
+
 all: ${COMPILER}
 all: ${COMPILER}/basicwifi.axf
 
 	Basic_Wifi_Application
 
 subdirs::
-	@for d in ${DIRS}; do $(MAKE) -C $$d "DEBUG=${DEBUG}" "PART=${PART}" "VARIANT=${VARIANT}" "CFLAGSgcc=${CFLAGSgcc}" "ROOT=${ROOT}" "TIVA_ROOT=${TIVA_ROOT}"; done;
+	@for d in ${DIRS}; do $(MAKE) -C $$d; done;
 
 .PHONY: testit
 testit: ${COMPILER}