Files
debugcc/Makefile

26 lines
544 B
Makefile
Raw Normal View History

OUT := debugcc
CC=aarch64-linux-gnu-gcc
CFLAGS := -O2 -Wall -g
2021-10-14 12:54:58 +02:00
LDFLAGS := -static -static-libgcc
prefix := /usr/local
SRCS := debugcc.c msm8936.c msm8996.c qcs404.c sc8280xp.c sdm845.c sm8350.c sm8450.c
OBJS := $(SRCS:.c=.o)
$(OUT): $(OBJS)
$(CC) -o $@ $^ $(LDFLAGS)
ln -f $(OUT) msm8936-debugcc
ln -f $(OUT) msm8996-debugcc
ln -f $(OUT) qcs404-debugcc
ln -f $(OUT) sc8280xp-debugcc
ln -f $(OUT) sdm845-debugcc
ln -f $(OUT) sm8350-debugcc
ln -f $(OUT) sm8450-debugcc
$(OBJS): %.o: debugcc.h
clean:
rm -f $(OUT) $(OBJS) *-debugcc