updated Makefile, main/fart.cc, util/Vector.h

git-svn-id: svn://anubis/fart/trunk@5 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
Josh Holtrop 2009-01-18 02:10:23 +00:00
parent 973c07d2a9
commit 0e93e2c76d
3 changed files with 18 additions and 2 deletions

View File

@ -1,16 +1,25 @@
TARGET := fart
ifdef WIN32 ifdef WIN32
export CPPFLAGS += -I"$(shell cd)" export CPPFLAGS += -I"$(shell cd)"
else else
export CPPFLAGS += -I"$(shell pwd)" export CPPFLAGS += -I"$(shell pwd)"
endif endif
all: all: $(TARGET)
$(TARGET):
make -C util make -C util
make -C shapes make -C shapes
make -C main
$(CXX) -o $@ main/*.o util/*.o shapes/*.o $(CXXFLAGS) $(LDFLAGS)
testsuite:
make -C test make -C test
$(CXX) -o $@ main/*.o util/*.o shapes/*.o $(CXXFLAGS) $(LDFLAGS)
clean: clean:
make -C test clean make -C test clean
make -C main clean
make -C shapes clean make -C shapes clean
make -C util clean make -C util clean

8
main/fart.cc Normal file
View File

@ -0,0 +1,8 @@
#include <iostream>
using namespace std;
int main(int argc, char * argv[])
{
cout << "hi" << endl;
}

View File

@ -8,7 +8,6 @@ class Vector
{ {
public: public:
Vector(); Vector();
~Vector();
double & operator[](int idx) { return m_array[idx]; } double & operator[](int idx) { return m_array[idx]; }
double operator[](int idx) const { return m_array[idx]; } double operator[](int idx) const { return m_array[idx]; }
void normalize(); void normalize();