mongoose/examples/ti/ti-ek-tm4c1294xl-http-server/Makefile

18 lines
716 B
Makefile
Raw Normal View History

2022-05-16 00:18:18 +08:00
NAME = ti-ek-tm4c1294xl-http-server
2022-10-25 21:41:53 +08:00
DOCKER ?= docker run --rm $(DOCKER_ARGS) -v $(CURDIR):/workspace mdashnet/ccs
2022-05-16 00:18:18 +08:00
2022-10-25 21:41:53 +08:00
$(NAME):
2022-05-16 00:18:18 +08:00
git clone --depth 1 https://github.com/mongoose-examples/$(NAME)
2022-10-25 21:41:53 +08:00
build: | $(NAME)
2022-05-16 00:18:18 +08:00
cp ./../../../mongoose.[ch] $(NAME)/
$(DOCKER) /opt/ti/ccs/eclipse/eclipse -noSplash -data /workspace -application com.ti.ccstudio.apps.projectBuild -ccs.autoImport -ccs.projects $(NAME) -ccs.configuration Release
clean:
test -d $(NAME) && $(DOCKER) rm -rf /workspace/$(NAME) || true
2022-10-25 21:41:53 +08:00
flash: DOCKER_ARGS = -it --privileged -v /dev/bus/usb/:/dev/bus/usb -w /workspace
flash:
$(DOCKER) /opt/ti/ccs/ccs_base/scripting/examples/loadti/loadti.sh -c $(NAME)/ek-tm4c1294xl.ccxml $(NAME)/Release/$(NAME).out