mirror of
https://github.com/linux-msm/debugcc.git
synced 2026-02-25 13:12:32 -08:00
26 lines
544 B
Makefile
26 lines
544 B
Makefile
OUT := debugcc
|
|
|
|
CC=aarch64-linux-gnu-gcc
|
|
|
|
CFLAGS := -O2 -Wall -g
|
|
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
|