[hackers] [libutf] add make install || Connor Lane Smith
changeset: 11:b92a2e649ad4
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Mon May 21 15:23:00 2012 +0100
files: Makefile config.mk
description:
add make install
diff -r 26e0cc5559aa -r b92a2e649ad4 Makefile
--- a/Makefile Sun May 13 15:33:19 2012 +0100
+++ b/Makefile Mon May 21 15:23:00 2012 +0100
_AT_@ -10,8 +10,7 @@
all: libutf.a utftest
libutf.a: $(OBJ)
- rm -f $_AT_
- $(AR) rc $_AT_ $(OBJ)
+ $(AR) -rcs $_AT_ $(OBJ)
utftest: utftest.o libutf.a
$(CC) $(LDFLAGS) -o $_AT_ utftest.o libutf.a
_AT_@ -22,5 +21,12 @@
runetypebody.h: mkrunetype.awk $(UCD)
$(AWK) -f mkrunetype.awk $(UCD) > $_AT_
+install: libutf.a
+ mkdir -p $(DESTDIR)$(PREFIX)/lib
+ cp libutf.a $(DESTDIR)$(PREFIX)/lib
+
+uninstall:
+ rm -f $(PREFIX)/lib/libutf.a
+
clean:
rm -f libutf.a utftest utftest.o $(OBJ)
diff -r 26e0cc5559aa -r b92a2e649ad4 config.mk
--- a/config.mk Sun May 13 15:33:19 2012 +0100
+++ b/config.mk Mon May 21 15:23:00 2012 +0100
_AT_@ -1,7 +1,9 @@
# See LICENSE file for copyright and license details.
+PREFIX = /usr/local
+
CFLAGS = -ansi -pedantic -Os -Wall -Wextra
-LDFLAGS =
+LDFLAGS = -s
CC = cc
AWK = awk
Received on Mon May 21 2012 - 16:23:05 CEST
This archive was generated by hypermail 2.3.0
: Mon May 21 2012 - 16:24:07 CEST