Skip to content
Snippets Groups Projects
Commit 3684f528 authored by Graziano Scalamera's avatar Graziano Scalamera
Browse files

Add install to Makefile

parent b95db519
No related branches found
No related tags found
No related merge requests found
TARGET_USER = ximc
ifeq ($(PREFIX),)
PREFIX := /usr
endif
INC_DIR=src
C_FLAGS=-DLIBXIMC_EXPORTS
......@@ -43,9 +46,10 @@ $(TARGET_USER): obj lib $(OBJ_FILES)
obj lib:
@mkdir $@
#install:
# su -c "cp lib/$(BASELIBNAME).so $(INSTALL_LIB_DIR);\
# cp src/$(TARGET_USER).h $(INSTALL_INC_DIR)"
install:
install lib/$(DT_SHLIB) $(PREFIX)/lib
cd $(PREFIX)/lib; ln -sf $(DT_SHLIB) $(DT_SONAME);ln -sf $(DT_SONAME) $(SHLIB)
install -m 644 src/$(TARGET_USER).h $(PREFIX)/include
clean:
......
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