Skip to content

Commit

Permalink
Improved the Makefile to support stripping the installed libraries fo…
Browse files Browse the repository at this point in the history
…r debugging.

You can now do 'sudo -E make strip=yes install' exactly as you would with 
gnustep-make.
  • Loading branch information
qmathe committed Nov 2, 2011
1 parent 9fae0d1 commit f0d835c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ install: all
$(SILENT)install -m 444 $(LIBOBJC).so.$(VERSION) $(LIB_DIR)
$(SILENT)install -m 444 $(LIBOBJCXX).so.$(VERSION) $(LIB_DIR)
$(SILENT)install -m 444 $(LIBOBJC).a $(LIB_DIR)
$(SILENT)if [ "$(strip)" = "yes" ]; then \
echo Stripping installed libraries...; \
strip $(LIB_DIR)/$(LIBOBJC).so.$(VERSION); \
strip $(LIB_DIR)/$(LIBOBJCXX).so.$(VERSION); \
strip $(LIB_DIR)/$(LIBOBJC).a; \
fi
$(SILENT)echo Creating symbolic links...
$(SILENT)ln -sf $(LIB_DIR)/$(LIBOBJC).so.$(VERSION) $(LIB_DIR)/$(LIBOBJC).so
$(SILENT)ln -sf $(LIB_DIR)/$(LIBOBJC).so.$(VERSION) $(LIB_DIR)/$(LIBOBJC).so.$(MAJOR_VERSION)
Expand Down

0 comments on commit f0d835c

Please sign in to comment.