separated installing header files from 'installLib' rule to 'installHeader'

This commit is contained in:
Václav Šmejkal 2022-06-11 16:30:19 +02:00
parent 8e2e3a89ae
commit d9e8c745c6
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -26,9 +26,11 @@ DOLLAR=$
##########
installLib:
installHeader:
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
installLib:
$(CC) $(CFLAGS) -fPIC -c $(SRC)
$(CC) $(CFLAGS) -shared -o lib$(PROJECT_NAME).so *.o $(LIBS)
install -m 755 lib$(PROJECT_NAME).so $(INSTALL_LIBRARY)/lib$(PROJECT_NAME).so
@ -47,4 +49,4 @@ clean:
all: install
installTest: install test
install: installLib installApp clean
install: installHeader installLib installApp clean