2022-02-03 22:36:09 +03:00
|
|
|
CFLAGS := -Wall -Wextra -Werror -pedantic -std=c99
|
2022-01-30 23:04:56 +03:00
|
|
|
CLIBS := -lm
|
|
|
|
INCLUDES := -Isrc
|
2022-01-31 14:40:06 +03:00
|
|
|
OBJECTS := obj/stb_image.o obj/stb_image_resize.o \
|
2022-02-03 14:19:39 +03:00
|
|
|
obj/colors.o obj/args.o obj/image.o obj/commons.o \
|
2022-02-03 15:41:54 +03:00
|
|
|
obj/mod_blocks.o obj/mod_braille.o
|
2022-01-30 23:04:56 +03:00
|
|
|
|
|
|
|
all: lib asciify
|
|
|
|
|
|
|
|
lib: $(OBJECTS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) obj/*
|
|
|
|
|
|
|
|
asciify: lib
|
|
|
|
$(CC) $(CFLAGS) src/main.c $(INCLUDES) $(OBJECTS) $(CLIBS) -o ./asciify
|
|
|
|
|
|
|
|
obj/%.o: src/%.c
|
|
|
|
$(CC) $(CFLAGS) $^ $(INCLUDES) -c -o $@
|
|
|
|
|