From cfebccb7a5a4e19090f2259efd18a8e97b318c96 Mon Sep 17 00:00:00 2001 From: Charles Date: Sat, 9 Nov 2019 11:11:23 +0100 Subject: Boilerplate SDL class --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..102191d --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +CC = g++ +CCFLAGS = -Wall -Wextra +LDFLAGS = $(shell sdl2-config --libs --cflags) + +NAME = flappy + +SRC = main.cpp graphics.cpp +OBJ = $(SRC:.cpp=.o) + +all: $(NAME) + +$(NAME): $(OBJ) + $(CC) $(LDFLAGS) -o $@ $^ + +%.o: %.cpp + $(CC) $(CCFLAGS) -c -o $@ $< + +clean: + rm -f $(OBJ) + +fclean: clean + rm -f $(NAME) + +re: fclean all -- cgit