mirror of
https://github.com/osm0sis/mkbootimg.git
synced 2026-07-02 21:12:30 +00:00
- stripping to keep compile size down - adapt optimizations from https://github.com/ModdingMyMind/boot_manipulation - disable some annoying verbosity
30 lines
412 B
Makefile
Executable File
30 lines
412 B
Makefile
Executable File
CC = gcc
|
|
AR = ar rc
|
|
ifeq ($(windir),)
|
|
RM = rm -f
|
|
CP = cp
|
|
else
|
|
RM = del
|
|
CP = copy /y
|
|
endif
|
|
|
|
CFLAGS = -ffunction-sections -O3
|
|
EXT = a
|
|
LIB = libmincrypt.$(EXT)
|
|
LIB_OBJS = dsa_sig.o p256.o p256_ec.o p256_ecdsa.o rsa.o sha.o sha256.o
|
|
INC = -I..
|
|
|
|
all:$(LIB)
|
|
|
|
clean:
|
|
$(RM) $(LIB_OBJS) $(LIB)
|
|
|
|
$(LIB):$(LIB_OBJS)
|
|
$(CROSS_COMPILE)$(AR) $@ $^
|
|
$(CP) $@ ..
|
|
|
|
|
|
%.o:%.c
|
|
$(CROSS_COMPILE)$(CC) -o $@ $(CFLAGS) -c $< $(INC)
|
|
|