OpenGLProject/Makefile

18 lines
290 B
Makefile
Raw Normal View History

CXX := g++
CXXFLAGS := -std=c++11 -c
LDFLAGS := -g
LDLIBS=
srcfiles := $(wildcard */*.cpp)
objfiles := $(subst src,obj,$(subst .cpp,.o,$(srcfiles)))
2024-04-23 07:46:02 -06:00
all: main.out
2024-04-23 07:46:02 -06:00
main.out: $(objfiles)
$(CXX) $(LDFLAGS) -o $@ $< $(LDLIBS)
obj/%.o: src/%.cpp
mkdir -p obj
$(CXX) $(CXXFLAGS) -o $@ $<