brintos

brintos / linux-shallow public Read only

0
0
Text · 518 B · 2887cc5 Raw
32 lines · plain
1# SPDX-License-Identifier: GPL-2.02 3CC=gcc4CFLAGS=-std=gnu11 -O2 -W -Wall -Wextra -Wno-unused-parameter -Wshadow5ifeq ("$(DEBUG)","1")6  CFLAGS += -g -fsanitize=address -fsanitize=leak -static-libasan7endif8 9SRCS=$(wildcard *.c)10OBJS=$(patsubst %.c,%.o,${SRCS})11 12include $(wildcard *.d)13 14all: ynl.a15 16ynl.a: $(OBJS)17	@echo -e "\tAR $@"18	@ar rcs $@ $(OBJS)19 20clean:21	rm -f *.o *.d *~22	rm -rf __pycache__23 24distclean: clean25	rm -f *.a26 27%.o: %.c28	$(COMPILE.c) -MMD -c -o $@ $<29 30.PHONY: all clean distclean31.DEFAULT_GOAL=all32