12 lines
465 B
Makefile
12 lines
465 B
Makefile
CC = clang #Set compiler
|
|
CFLAGS = -pg -g -Wall -O2 -pg #set compiler flags
|
|
LDFLAGS = -pg -g #set linker flags
|
|
LDLIBS = -lraylib -lm #set libraries to use
|
|
objects = c3d.o reader.o arrayfuncs.o vecfunc.o #list all object files
|
|
|
|
c3d: $(objects) #State that to make the c3d executeable, we need all objects
|
|
|
|
$(objects): %.o: %.c #State that to make each object, we use its respective c file
|
|
|
|
clean: #to clean remove all object files and the executable
|
|
rm -f *.o c3d
|