raylib-ascii-render/Makefile

20 lines
331 B
Makefile
Raw Normal View History

2022-10-13 17:45:17 +03:00
CFLAGS +=
2022-10-13 23:48:14 +03:00
LDFLAGS := -lraylib -lm
2022-10-13 17:45:17 +03:00
OBJECTS :=
raylib-ascii-render: lib
$(CC) $(CFLAGS) $(OBJECTS) src/main.c $(LDFLAGS) -o raylib-ascii-render
2022-10-13 21:13:44 +03:00
run: raylib-ascii-render
./raylib-ascii-render
2022-10-13 17:45:17 +03:00
all: raylib-ascii-render
lib: $(OBJECTS)
clean:
$(RM) $(OBJECTS) raylib-ascii-render
obj/%.o: src/%.c
$(CC) $(CFLAGS) -c $^ -o $@