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.
18 lines
278 B
18 lines
278 B
2 years ago
|
CC = g++
|
||
|
CFLAGS = -pthread -std=c++11 -Wall -Wextra -pedantic
|
||
|
LDLIBS = -lSDL2 -lSDL2_image
|
||
|
SRCS = $(wildcard *.cpp)
|
||
|
|
||
|
OBJS = $(SRCS:.cpp=.o)
|
||
|
|
||
|
all: main
|
||
|
|
||
|
main: $(OBJS)
|
||
|
$(CC) $(CFLAGS) $(OBJS) -o main $(LDLIBS)
|
||
|
|
||
|
%.o: %.cpp
|
||
|
$(CC) $(CFLAGS) -c $< -o $@
|
||
|
|
||
|
clean:
|
||
|
rm -f $(OBJS) main
|