Skip to content

Instantly share code, notes, and snippets.

@hikiko hikiko/Makefile
Last active Apr 19, 2019

Embed
What would you like to do?
Android makefile (not for apk). Just a reminder for adb stuff, compiler selection etc
obj = main.o
bin = test
toolchain_prefix = armv7a-linux-androideabi28-
CC = $(toolchain_prefix)clang
CFLAGS = -pedantic -Wall -g -O0
$(bin): $(obj)
$(CC) -o $@ $(obj) $(LDFLAGS)
.PHONY: clean
clean:
rm -f $(obj) $(bin)
.PHONY: install
install: $(bin)
adb push $(bin) /data/local/tmp
.PHONY: run
run:
adb shell "cd /data/local/tmp && ./$(bin)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.