Commits

Trammell Hudson  committed 6c82c33

Fixup $(PATH), add $(SIZE) display and httpd target

  • Participants
  • Parent commits 8c6b7d8

Comments (0)

Files changed (1)

File Makefile.pebble

 # Otherwise it should "just work".
 #
 PEBBLE_HOME := $(HOME)/build/pebble/sdk
-GCC_PREFIX := $(HOME)/arm-cs-tools/bin/arm-none-eabi-
+ARM_GCC_PATH := $(HOME)/arm-cs-tools/bin
+GCC_PREFIX := $(ARM_GCC_PATH)/arm-none-eabi-
+export PATH := $(ARM_GCC_PATH):$(PATH)
 
 CC := $(GCC_PREFIX)gcc
 LD := $(CC)
 OBJCOPY := $(GCC_PREFIX)objcopy
+SIZE := $(GCC_PREFIX)size
 PYTHON := python
 
 # If no version is specified, use a default one
 		$(LDFLAGS) \
 		-o $@ \
 		$^ \
-		$(LDLIBS) \
+		$(LDLIBS)
+	$(SIZE) $@
 
 $O/%.o:
 	$(CC) $(CFLAGS) -c -o $@ $<
 # These are produced by the -MMD flag to gcc in $(CFLAGS).
 #
 -include $O/.*.o.d
+
+#
+# Start a web server in the .. directory
+#
+httpd:
+	cd .. ; $(PYTHON) -mSimpleHTTPServer