diff --git a/Makefile b/Makefile index 1e6cc1d..6891e42 100644 --- a/Makefile +++ b/Makefile @@ -33,9 +33,11 @@ installHeader: 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 -installLib: +buildLib: $(CC) $(CFLAGS) -fPIC -c $(SRC) $(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 installApp: app