16 lines
387 B
Makefile
16 lines
387 B
Makefile
CFLAGS=-g -fno-omit-frame-pointer -Wall -Wextra -pedantic -O0
|
|
CC=gcc
|
|
|
|
.PHONY: build clean run all
|
|
|
|
all: base floodfill
|
|
|
|
base: base.c ./lib/libraylib.a
|
|
$(CC) $(CFLAGS) -Llib/ -Iinclude/ -lm base.c -o base ./lib/libraylib.a
|
|
|
|
floodfill: floodfill.c ./lib/libraylib.a
|
|
$(CC) $(CFLAGS) -Llib/ -Iinclude/ -lm floodfill.c -o floodfill ./lib/libraylib.a
|
|
|
|
clean:
|
|
rm -vf *.so *.o floodfill base
|