diff -r fc8d05972af7 -r 3238f65db163 Makefile --- a/Makefile Thu Sep 05 13:55:04 2013 +0200 +++ b/Makefile Fri Sep 06 13:20:20 2013 +0200 @@ -29,20 +29,20 @@ # # available configurations: -# gcc -# suncc +# clang, clang-debug +# gcc, gcc-debug +# g++, g++-debug +# osx, osx-debug +# suncc, suncc-debug # windows -# osx # -#ifndef CONF - CONF=gcc -#endif +CONF=gcc +PREFIX=/usr/local +include unix.mk include $(CONF).mk -all: ucx test - ucx: FORCE cd ucx; $(MAKE) CONF=$(CONF) all @@ -52,9 +52,22 @@ run: FORCE test ./build/test$(APP_EXT) +install: ucx | $(PREFIX)/include/ucx $(PREFIX)/lib + cp ./build/libucx$(LIB_EXT) $(PREFIX)/lib && \ + cp ./ucx/*.h $(PREFIX)/include/ucx + +uninstall: + $(RM) $(RMFLAGS) $(PREFIX)/include/ucx &&\ + $(RM) $(RMFLAGS) $(PREFIX)/lib/libucx$(LIB_EXT) + +$(PREFIX)/lib: + mkdir -p $(PREFIX)/lib + +$(PREFIX)/include/ucx: + mkdir -p $(PREFIX)/include/ucx + clean: FORCE - $(RM) $(RMFLAGS) build/*.${OBJ_EXT} - $(RM) $(RMFLAGS) build/*.${LIB_EXT} + $(RM) $(RMFLAGS) build FORCE: