updated main Makefile
git-svn-id: svn://anubis/fart/trunk@17 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
parent
2adb782b24
commit
6283577b42
5
Makefile
5
Makefile
@ -14,11 +14,8 @@ $(TARGET):
|
||||
make -C shapes
|
||||
make -C main
|
||||
$(CXX) -o $@ main/*.o util/*.o shapes/*.o $(CXXFLAGS) $(LDFLAGS)
|
||||
|
||||
.PHONY: tests
|
||||
tests:
|
||||
make -C test
|
||||
$(CXX) -o $@ test/*.o util/*.o shapes/*.o $(CXXFLAGS) $(LDFLAGS)
|
||||
$(CXX) -o tests test/*.o util/*.o shapes/*.o $(CXXFLAGS) $(LDFLAGS)
|
||||
|
||||
clean:
|
||||
make -C test clean
|
||||
|
@ -6,15 +6,10 @@ using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
Matrix m;
|
||||
int v = 1;
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
for (int j = 0; j < 4; j++)
|
||||
{
|
||||
m[i][j] = v++;
|
||||
}
|
||||
}
|
||||
Matrix m = Matrix::identity();
|
||||
m[0][3] = 2.0;
|
||||
m[1][3] = -1.0;
|
||||
m[2][3] = 10.0;
|
||||
|
||||
cout << "m:" << endl << m;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user