Commits

Trammell Hudson committed a3ef683

Rename $(APP).bin to pebble-app.bin for compatability with libpebble?

  • Participants
  • Parent commits fed4325

Comments (0)

Files changed (1)

File Makefile.pebble

 	-L$(PEBBLE_HOME)/lib \
 	-lpebble \
 
+BUILD_TIME := $(shell date "+%s")
+
+ifeq ($(LIB),)
+# Force all executables to depend on our pebble library
+all: $O/$(APP).pbw
+else
+# Libraries do not depend on anything external
+all: $O/$(LIB)
+endif
+
 
 #
 # Convert the elf file to a binary file, with
 # the appended Pebble metadata.
 #
-%.bin: %.elf
+$O/pebble-app.bin: $O/pebble-app.elf
 	$(OBJCOPY) -O binary $< $@
 	$(PYTHON) $(PEBBLE_HOME)/waftools/inject_metadata.py $@
 
 # 
 # Bundle the binary (with pebble meta data) into an application.
 #
-BUILD_TIME := $(shell date "+%s")
 
-%.pbw: %.bin
+# Final step to link everything into the PBW file
+$O/$(APP).pbw: $O/pebble-app.bin
 	$(PYTHON) $(PEBBLE_HOME)/tools/mkbundle.py \
 		--watchapp $< \
 		--watchapp-timestamp $(BUILD_TIME) \
 		-o $@ \
 		-v \
 
-ifeq ($(LIB),)
-# Force all executables to depend on our pebble library
-all: $O/$(APP).pbw
-else
-# Libraries do not depend on anything external
-all: $O/$(LIB)
-endif
-
 
 
 #
 #$(eval $(info OBJS=$(OBJS)))
 
 $O/$(APP).pbw: $O/app_resources.pbpack
-$O/$(APP).elf: $(OBJS) $(LIBPEBBLE_TH)
+$O/pebble-app.elf: $(OBJS) $(LIBPEBBLE_TH)
 	$(LD) \
 		$(LDFLAGS) \
 		-o $@ \