20 lines
331 B
Makefile
20 lines
331 B
Makefile
CFLAGS +=
|
|
LDFLAGS := -lraylib -lm
|
|
OBJECTS :=
|
|
|
|
raylib-ascii-render: lib
|
|
$(CC) $(CFLAGS) $(OBJECTS) src/main.c $(LDFLAGS) -o raylib-ascii-render
|
|
|
|
run: raylib-ascii-render
|
|
./raylib-ascii-render
|
|
|
|
all: raylib-ascii-render
|
|
|
|
lib: $(OBJECTS)
|
|
|
|
clean:
|
|
$(RM) $(OBJECTS) raylib-ascii-render
|
|
|
|
obj/%.o: src/%.c
|
|
$(CC) $(CFLAGS) -c $^ -o $@
|