separated installing header files from 'installLib' rule to 'installHeader'
This commit is contained in:
parent
8e2e3a89ae
commit
d9e8c745c6
6
Makefile
6
Makefile
@ -26,9 +26,11 @@ DOLLAR=$
|
|||||||
|
|
||||||
##########
|
##########
|
||||||
|
|
||||||
installLib:
|
installHeader:
|
||||||
for file in $(INCLUDE); do install -m 755 -D $(DOLLAR)file -t $(INSTALL_INCLUDE)/$(PROJECT_NAME); done
|
for file in $(INCLUDE); do install -m 755 -D $(DOLLAR)file -t $(INSTALL_INCLUDE)/$(PROJECT_NAME); done
|
||||||
install -m 755 $(INCLUDE_DIR)/$(PROJECT_NAME).h $(INSTALL_INCLUDE)/$(PROJECT_NAME).h
|
install -m 755 $(INCLUDE_DIR)/$(PROJECT_NAME).h $(INSTALL_INCLUDE)/$(PROJECT_NAME).h
|
||||||
|
|
||||||
|
installLib:
|
||||||
$(CC) $(CFLAGS) -fPIC -c $(SRC)
|
$(CC) $(CFLAGS) -fPIC -c $(SRC)
|
||||||
$(CC) $(CFLAGS) -shared -o lib$(PROJECT_NAME).so *.o $(LIBS)
|
$(CC) $(CFLAGS) -shared -o lib$(PROJECT_NAME).so *.o $(LIBS)
|
||||||
install -m 755 lib$(PROJECT_NAME).so $(INSTALL_LIBRARY)/lib$(PROJECT_NAME).so
|
install -m 755 lib$(PROJECT_NAME).so $(INSTALL_LIBRARY)/lib$(PROJECT_NAME).so
|
||||||
@ -47,4 +49,4 @@ clean:
|
|||||||
|
|
||||||
all: install
|
all: install
|
||||||
installTest: install test
|
installTest: install test
|
||||||
install: installLib installApp clean
|
install: installHeader installLib installApp clean
|
Loading…
x
Reference in New Issue
Block a user