12345678910111213141516171819202122 |
- arm: CC = arm-linux-androideabi-gcc
- x86: CC = i686-linux-android-gcc
- mips: CC = mipsel-linux-android-gcc
- CFLAGS = -Wall -g
- LDFLAGS = -llog
- SRC = p.c
- OBJ = $(SRC:.c=.o)
- EXE = p
- arm x86 mips: $(SRC) $(EXE)
- $(EXE): $(OBJ)
- $(CC) -o $@ $^ $(LDFLAGS)
- %.o: %.c
- $(CC) -o $@ -c $< $(CFLAGS)
- clean:
- rm -f *.o $(EXE)
- install:
- adb push p /data/local
|