Makefile 265 B

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