LIBS = src/libs/* BUILD_ARGS = -Wall -Werror -Ilibs/ build: libraries g++ src/main.cpp -Ldist/* -Ilibs/ -o enigma libraries: mkdir dist/ for dir in $(LIBS); do \ cd $$dir; \ g++ -c *.c -I../;\ mv *.o ../../dist; \ cd -; done clean: rm -rf dist/