Makefile~ 346 B

12345678910111213141516171819202122
  1. arm: CC = arm-linux-androideabi-gcc
  2. x86: CC = i686-linux-android-gcc
  3. mips: CC = mipsel-linux-android-gcc
  4. CFLAGS = -Wall -g
  5. LDFLAGS = -llog
  6. SRC = p.c
  7. OBJ = $(SRC:.c=.o)
  8. EXE = p
  9. arm x86 mips: $(SRC) $(EXE)
  10. $(EXE): $(OBJ)
  11. $(CC) -o $@ $^ $(LDFLAGS)
  12. %.o: %.c
  13. $(CC) -o $@ -c $< $(CFLAGS)
  14. clean:
  15. rm -f *.o $(EXE)
  16. install:
  17. adb push p /data/local