Figure out where to install-libs
[akaros.git] / user / parlib / Makefile
index e298e54..9ad899d 100644 (file)
@@ -11,7 +11,7 @@ INCDIR = $(SRCDIR)include
 
 INCS = -I. -I$(INCDIR) 
 FINALLIB = $(OBJDIR)/lib$(LIBNAME).a
-FINALLIB-INSTALL = $(XCC_TARGET_ROOT)/lib/lib$(LIBNAME).a
+FINALLIB-INSTALL = $(XCC_TARGET_LIB)/lib$(LIBNAME).a
 
 uc = $(shell echo $(1) | tr a-z A-Z)
 
@@ -43,9 +43,9 @@ $(FINALLIB): $(OBJS)
 
 $(FINALLIB-INSTALL): $(FINALLIB)
        @cp $(FINALLIB) $@
-       @cp -R $(INCDIR)/* $(XCC_TARGET_ROOT)/sys-include/
-       @rm -rf $(XCC_TARGET_ROOT)/sys-include/parlib  
-       @ln -fs . $(XCC_TARGET_ROOT)/sys-include/parlib  
+       @cp -R $(INCDIR)/* $(XCC_TARGET_INCLUDE)/
+       @rm -rf $(XCC_TARGET_INCLUDE)/parlib
+       @ln -fs . $(XCC_TARGET_INCLUDE)/parlib
 
 install: $(FINALLIB-INSTALL)
        @echo > /dev/null