This repository has been archived on 2022-05-19. You can view files and clone it, but cannot push or open issues or pull requests.
CompressionImages/Makefile

28 lines
540 B
Makefile
Raw Permalink Normal View History

2022-05-08 15:56:11 +02:00
CXX = g++
RM = rm
CXXFLAGS = $(shell sdl2-config --cflags)
LDLIBS = $(shell sdl2-config --libs) -lSDL2_image
SOURCES = $(wildcard src/*.cpp)
OBJETS = $(patsubst %.cpp,%.cpp.o,$(notdir $(SOURCES)))
EXE = quadtree
%.cpp.o: src/%.cpp
$(CXX) -c -o $@ $< $(CXXFLAGS)
main: CXXFLAGS += -O3
main: compilation
2022-05-10 12:53:30 +02:00
dev: CXXFLAGS += -Wall -Wextra -Wshadow -pedantic -g -Wold-style-cast -Wsign-conversion
2022-05-08 15:56:11 +02:00
dev: compilation
compilation: $(OBJETS)
$(CXX) -o $(EXE) $(OBJETS) $(LDLIBS)
all:
main
clean:
$(RM) $(OBJETS) $(EXE)