raylib-ascii-render/Makefile

20 lines
327 B
Makefile

CFLAGS +=
LDFLAGS := -lraylib
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 $@