mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2025-01-15 19:15:17 +00:00
25 lines
370 B
Makefile
25 lines
370 B
Makefile
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:
|
|
mkdir build
|
|
|
|
|
|
build/%.o: %.c prep_dirs
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
clean:
|
|
@rm $(OBJS) || true
|
|
@rm libcyclone.a || true
|
|
@rm -rf build || true
|
|
|
|
|