Added .gitignore.
This commit is contained in:
1 parent
9bc23e149c
commit
a2526dd3ed
3 files changed
+42
No files matched your search
@@ -1,2 +1,3 @@
|
|||||||
Debug
|
Debug
|
||||||
*.o
|
*.o
|
||||||
|
*~
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
for file in *.cpp
|
||||||
|
do
|
||||||
|
filename="${file%.*}"
|
||||||
|
list="$list $filename.o"
|
||||||
|
echo -n "Compiling $filename..."
|
||||||
|
g++ -c $file
|
||||||
|
if [ $? = '0' ]
|
||||||
|
then
|
||||||
|
echo "OK"
|
||||||
|
else
|
||||||
|
echo "ERROR"
|
||||||
|
fi
|
||||||
|
|
||||||
|
done
|
||||||
|
|
||||||
|
wait
|
||||||
|
echo $list
|
||||||
|
g++ -o main.cpp $list
|
||||||
|
|
||||||
Reference in new issue
Block a user