android_hardware_samsung/loki_tool/Makefile
Nolen Johnson 802fd001d4 mkbootimg: Add Loki support
* I want my target-files built images to be Loki'd if the device
  needs Loki.
* With this, devices that rely on Loki can ship Lineage Recovery
  officially.
* Import loki_tool from: https://github.com/Stricted/android_external_loki.

Change-Id: I45ef363e05566268c8f24f7e8939a2d785478fbe
2019-08-11 08:31:45 +02:00

31 lines
553 B
Makefile

SRC_LOKI := loki_flash.c loki_patch.c loki_find.c loki_unlok.c main.c
OBJ_LOKI = $(SRC_LOKI:.c=.o)
MODULE_LOKI := loki_tool
CC := arm-linux-androideabi-gcc
CC_STRIP := arm-linux-androideabi-strip
CFLAGS += -g -static -Wall
#$(LDFLAGS) +=
all: $(MODULE_LOKI)
host: CC := gcc
host: $(MODULE_LOKI)
%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS)
$(MODULE_LOKI): $(OBJ_LOKI)
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
strip:
$(CC_STRIP) --strip-unneeded $(MODULE_LOKI)
$(CC_STRIP) --strip-debug $(MODULE_LOKI)
clean:
rm -f *.o
rm -f loki_tool
.phony: host all