You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
303 B

CC = g++
CFLAGS = -pthread -std=c++11 -Wall -Wextra -pedantic -O3
LDLIBS = -lSDL2 -lSDL2_image
SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:.cpp=.o)
all: main
doc:
doxygen
main: $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o main $(LDLIBS)
%.o: %.cpp
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -rf $(OBJS) main doc