yaitaa/Makefile

19 lines
312 B
Makefile
Raw Normal View History

2022-01-30 23:04:56 +03:00
CFLAGS := -Wall -Wextra -Werror -pedantic -std=c99
CLIBS := -lm
INCLUDES := -Isrc
OBJECTS := obj/stb_image.o
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 $@