From a761f44bf5712955e35f0c9fa18281f6d3c58dcd Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 18 Nov 2022 16:01:41 +0100 Subject: [PATCH] separated build step from installLib into buildLib --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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