separated build step from installLib into buildLib

This commit is contained in:
Václav Šmejkal 2022-11-18 16:01:41 +01:00
parent e20a5e7b94
commit a761f44bf5
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -33,9 +33,11 @@ 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
ln -sf $(INSTALL_INCLUDE)/$(PROJECT_NAME)/$(PROJECT_NAME).h $(INSTALL_INCLUDE)/$(PROJECT_NAME).h ln -sf $(INSTALL_INCLUDE)/$(PROJECT_NAME)/$(PROJECT_NAME).h $(INSTALL_INCLUDE)/$(PROJECT_NAME).h
installLib: buildLib:
$(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)
installLib: buildLib
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
installApp: app installApp: app