From ce65a7e1f682fa31934c05623c41ea25d9b71ce7 Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 19 Mar 2020 11:28:30 +0100 Subject: Added colors --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0b643f2..5cd4949 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ CXXFLAGS = -Wall -Wextra -I$(INCDIR) $(shell sdl2-config --cflags) LDFLAGS = $(shell sdl2-config --libs) -lSDL2_ttf SRC = $(shell find $(SRCDIR) -type f -name "*.cpp") -INC = $(shell find $(INCDIR) -type f -name "*.h" -name "*.hpp") +INC = $(shell find $(INCDIR) -type f -name "*.h" -o -name "*.hpp") OBJ = $(SRC:$(SRCDIR)/%.cpp=$(OBJDIR)/%.o) all: prebuild $(NAME) @@ -23,7 +23,7 @@ prebuild: $(NAME): $(OBJ) $(CXX) -o $@ $^ $(LDFLAGS) -$(OBJDIR)/%.o: $(SRCDIR)/%.cpp +$(OBJDIR)/%.o: $(SRCDIR)/%.cpp $(INC) $(CXX) $(CXXFLAGS) -c -o $@ $< clean: -- cgit