- Added some missing newlines at end of files

- Modified Makefiles to produce a shared library
- Added SingletonDll Makefile


git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@581 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
lfittl 2006-03-02 21:19:41 +00:00
parent f13e5f58ef
commit 6152f9386f
9 changed files with 70 additions and 26 deletions

22
test/SingletonDll/Makefile Executable file
View file

@ -0,0 +1,22 @@
BIN = client
LIB1 = libfoo.so
LIB2 = libsingletondll.so
CXXFLAGS = -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -O2
CPPFLAGS = -I../../include -DNDEBUG
LDFLAGS = -L../../lib
LDLIBS = -lloki
.PHONY: build clean
build: $(BIN)
$(BIN): $(LIB1) $(LIB2)
$(CXX) $(CXXFLAGS) -L. $(LDFLAGS) $(CPPFLAGS) -o $(BIN) client.cpp $(LDLIBS) -lfoo -lsingletondll
$(LIB1): foo.cpp
$(CXX) --shared $(CXXFLAGS) $(CPPFLAGS) -o $(LIB1) foo.cpp
$(LIB2): singletondll.cpp
$(CXX) --shared $(CXXFLAGS) $(CPPFLAGS) -o $(LIB2) foo.cpp
clean:
rm -f $(BIN) $(LIB1) $(LIB2)

View file

@ -43,4 +43,4 @@ int main()
#endif
return 0;
}
}

View file

@ -22,4 +22,4 @@ Foo::Foo()
void Foo::foo()
{
std::cout << "\nFoo:foo() called, this: " << this << "\n";
}
}

View file

@ -27,4 +27,4 @@ public:
};
#endif
#endif

View file

@ -41,4 +41,4 @@
#endif
#endif
#endif

View file

@ -39,4 +39,4 @@ template class SINGLETONDLL_EXPORT Singleton<Foo>;
#endif
#endif

View file

@ -41,4 +41,4 @@
#endif
#endif
#endif