From d9e8c745c61f1cbc32b27a31ff5c1ade919e20b5 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sat, 11 Jun 2022 16:30:19 +0200 Subject: [PATCH] separated installing header files from 'installLib' rule to 'installHeader' --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 991bc03..ffae340 100644 --- a/Makefile +++ b/Makefile @@ -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 \ No newline at end of file +install: installHeader installLib installApp clean \ No newline at end of file