youtubeUnblock/deps/cyclone/Makefile

25 lines
373 B
Makefile
Raw Permalink Normal View History

2024-09-21 19:13:32 +00:00
SRCS := $(shell find -name "*.c")
OBJS := $(SRCS:%.c=build/%.o)
override CFLAGS += -Iinclude -Wno-pedantic
LIBNAME := libcyclone.a
CC := gcc
run: $(OBJS)
@echo "AR $(LIBNAME)"
@ar rcs libcyclone.a $(OBJS)
prep_dirs:
2025-01-02 17:49:29 +00:00
mkdir -p build
2024-09-21 19:13:32 +00:00
build/%.o: %.c prep_dirs
$(CC) $(CFLAGS) -c -o $@ $<
clean:
@rm $(OBJS) || true
@rm libcyclone.a || true
@rm -rf build || true