cyber-rat/Makefile

20 lines
267 B
Makefile

CFLAGS +=
LDFLAGS := -lraylib
OBJECTS :=
run: cyber-rat
./cyber-rat
cyber-rat: lib
$(CC) $(CFLAGS) $(OBJECTS) src/main.c $(LDFLAGS) -o cyber-rat
all: cyber-rat
lib: $(OBJECTS)
clean:
$(RM) $(OBJECTS) cyber-rat
obj/%.o: src/%.c
$(CC) $(CFLAGS) -c $^ -o $@