Commit fda4b7cf authored by neverlord's avatar neverlord

linux compatibility

parent 8681a1c4
...@@ -15,3 +15,4 @@ cpp0x_test.dSYM/ ...@@ -15,3 +15,4 @@ cpp0x_test.dSYM/
Makefile Makefile
Makefile.rules Makefile.rules
libcppa.Makefile libcppa.Makefile
libcppa.so*
...@@ -63,7 +63,7 @@ printf "%b\n" "CXXFLAGS = $gcc_flags" ...@@ -63,7 +63,7 @@ printf "%b\n" "CXXFLAGS = $gcc_flags"
if test $(uname) = "Darwin" ; then if test $(uname) = "Darwin" ; then
printf "%b\n" "LIBS = -L/opt/local/lib -lboost_thread-mt" printf "%b\n" "LIBS = -L/opt/local/lib -lboost_thread-mt"
else else
printf "%b\n" "LIBS = " printf "%b\n" "LIBS = -lboost_thread"
fi fi
# redirect stdout to libcppa.Makefile # redirect stdout to libcppa.Makefile
exec >libcppa.Makefile exec >libcppa.Makefile
...@@ -85,7 +85,7 @@ printf "\n" ...@@ -85,7 +85,7 @@ printf "\n"
printf "%b\n" "%.o : %.cpp \$(HEADERS)" printf "%b\n" "%.o : %.cpp \$(HEADERS)"
printf "%b\n" "\t\$(CXX) \$(CXXFLAGS) \$(INCLUDE_FLAGS) -fPIC -c \$< -o \$@" printf "%b\n" "\t\$(CXX) \$(CXXFLAGS) \$(INCLUDE_FLAGS) -fPIC -c \$< -o \$@"
printf "\n" printf "\n"
printf "%b\n" "\$libcppa : \$(OBJECTS) \$(HEADERS)" printf "%b\n" "libcppa.so.0.0.0 : \$(OBJECTS) \$(HEADERS)"
if test "$(uname)" "=" "Darwin" ; then if test "$(uname)" "=" "Darwin" ; then
printf "%b\n" "\t\$(CXX) \$(LIBS) -dynamiclib -o libcppa.dylib \$(OBJECTS)" printf "%b\n" "\t\$(CXX) \$(LIBS) -dynamiclib -o libcppa.dylib \$(OBJECTS)"
else else
...@@ -95,7 +95,7 @@ else ...@@ -95,7 +95,7 @@ else
printf "%b\n" "\tln -s libcppa.so.0.0.0 libcppa.so" printf "%b\n" "\tln -s libcppa.so.0.0.0 libcppa.so"
fi fi
printf "\n" printf "\n"
printf "%b\n" "all : libcppa \$(OBJECTS)" printf "%b\n" "all : libcppa.so.0.0.0 \$(OBJECTS)"
printf "\n" printf "\n"
printf "%b\n" "clean:" printf "%b\n" "clean:"
printf "%b\n" "\trm -f \$(LIB_NAME) \$(OBJECTS)" printf "%b\n" "\trm -f \$(LIB_NAME) \$(OBJECTS)"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment