cyber-rat/Makefile

20 lines
267 B
Makefile
Raw Normal View History

2022-10-16 10:11:14 +03:00
CFLAGS +=
2022-10-16 13:44:53 +03:00
LDFLAGS := -lraylib
2022-10-16 10:11:14 +03:00
OBJECTS :=
2022-10-16 13:44:53 +03:00
run: cyber-rat
./cyber-rat
2022-10-16 10:11:14 +03:00
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 $@