separated build step from installLib into buildLib
This commit is contained in:
parent
e20a5e7b94
commit
a761f44bf5
4
Makefile
4
Makefile
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user