ifeq ($(OS),Windows_NT) LDFLAGS= else LDFLAGS=-ldl endif all: example.cpp ../../libShaderFile.h g++ -o example example.cpp $(LDFLAGS) clean: rm -rf *.exe