makefile: add prebuild and postbuild

This commit is contained in:
Yanyan Jiang 2019-02-06 15:35:20 +08:00
parent 1d8579e607
commit 1b38368d05
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ LINK_FILES += $(addsuffix -$(ARCH).a, $(join \
))
.PHONY: app run clean
app: $(OBJS) am $(LIBS)
app: $(PREBUILD) $(OBJS) am $(LIBS) $(POSTBUILD)
@bash $(AM_HOME)/am/arch/$(ARCH)/img/build $(BINARY) $(LINK_FILES)
run: app
@bash $(AM_HOME)/am/arch/$(ARCH)/img/run $(BINARY)