2023-02-24 15:48:02 +01:00
|
|
|
CC = gcc
|
2023-02-19 23:40:58 +01:00
|
|
|
LDFLAGS = -lm -lgrapheme -lSDL2 -lGLEW -lGL
|
2023-03-06 19:01:15 +01:00
|
|
|
CFLAGS = -g -Wall -Wextra -pedantic -fno-omit-frame-pointer
|
2023-02-15 02:15:44 +01:00
|
|
|
|
2023-02-24 15:48:02 +01:00
|
|
|
.PHONY: clean all
|
|
|
|
|
all: test
|
|
|
|
|
|
2023-03-05 10:41:40 +01:00
|
|
|
font.o: font.c font.h stb_truetype.h stb_image_write.h util.h \
|
|
|
|
|
generic_cache.h hash.h
|
2023-02-24 15:48:02 +01:00
|
|
|
hash.o: hash.c hash.h util.h
|
|
|
|
|
main.o: main.c ren.h util.h
|
2023-03-06 19:01:15 +01:00
|
|
|
ren.o: ren.c util.h font.h ren.h generic_stack.h
|
2023-02-24 15:48:02 +01:00
|
|
|
util.o: util.c util.h
|
2023-03-05 10:41:40 +01:00
|
|
|
test: font.o hash.o main.o ren.o util.o
|
|
|
|
|
${CC} ${LDFLAGS} -o test font.o hash.o main.o ren.o util.o
|
2023-02-24 15:48:02 +01:00
|
|
|
clean:
|
2023-03-05 10:41:40 +01:00
|
|
|
rm -f test font.o hash.o main.o ren.o util.o
|