19 lines
290 B
Makefile
19 lines
290 B
Makefile
BUILD_ARGS = -Wall -Werror -Isrc/libs/
|
|
|
|
|
|
build: libraries
|
|
g++ src/main.cpp -Ldist/* $(BUILD_ARGS) -o enigma
|
|
|
|
|
|
libraries:
|
|
mkdir -p dist/
|
|
for dir in src/libs/*; do\
|
|
echo "cd into" $$dir; \
|
|
cd $$dir; \
|
|
g++ -c *.cpp ; \
|
|
mv *.o ../../../dist/ ; \
|
|
done
|
|
|
|
|
|
clean:
|
|
rm -rf dist/ enigma
|