1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
Enigma-Machine/Makefile

19 lines
242 B
Makefile
Raw Normal View History

2015-10-11 18:41:43 +01:00
BUILD_ARGS = -Wall -Werror -Isrc/
2015-10-11 16:58:21 +01:00
2015-10-11 18:41:43 +01:00
build:
2015-10-11 18:25:04 +01:00
g++ src/main.cpp -Ldist/* $(BUILD_ARGS) -o enigma
2015-10-11 16:58:21 +01:00
libraries:
2015-10-11 18:25:04 +01:00
mkdir -p dist/
2015-10-11 18:41:43 +01:00
for dir in src/*/; do\
2015-10-11 16:58:21 +01:00
cd $$dir; \
2015-10-11 18:25:04 +01:00
g++ -c *.cpp ; \
2015-10-11 18:41:43 +01:00
mv *.o ../../dist/ ; \
2015-10-11 16:58:21 +01:00
done
2015-10-11 18:25:04 +01:00
2015-10-11 16:58:21 +01:00
clean:
2015-10-11 18:25:04 +01:00
rm -rf dist/ enigma