blob: 4c7ecfaf433a51395248839af1450802c7d93120 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
--- Makefile.orig 2001-04-28 09:45:46.000000000 +0800
+++ Makefile 2013-09-27 20:16:44.000000000 +0800
@@ -1,11 +1,11 @@
CC=gcc
-CFLAG=-O2 -g -Wall -Iinclude
+CFLAG=-Iinclude
LIBS= -Llib -lhz
.PHONY: all hzlib clean install-home install
-all: autob5 autogb hzlib xchat-plugins
+all: autob5 autogb hzlib
autob5: autogb
rm -f autob5;ln -s autogb autob5
@@ -30,12 +30,10 @@ install-home:
ln -s $(HOME)/bin/autogb $(HOME)/bin/autob5
chmod 755 $(HOME)/bin/autogb
install:
- install -m 755 autogb $(DESTDIR)/usr/bin
- install -m 755 lib/libhz.so.0.0 $(DESTDIR)/usr/lib
- cd $(DESTDIR)/usr/lib;ln -s libhz.so.0.0 libhz.so.0
- cd $(DESTDIR)/usr/lib;ln -s libhz.so.0 libhz.so
- install -m 755 lib/libhz.a $(DESTDIR)/usr/lib
- install -m 755 contrib/xchat-plugins/xchat-autogb.so $(DESTDIR)/usr/share/zh-autoconvert
- install -m 755 contrib/xchat-plugins/xchat-autob5.so $(DESTDIR)/usr/share/zh-autoconvert
- install -m 644 include/*.h $(DESTDIR)/usr/include
- ln -s autogb $(DESTDIR)/usr/bin/autob5
+ ${BSD_INSTALL_PROGRAM} autogb $(DESTDIR)$(PREFIX)/bin
+ ${BSD_INSTALL_LIB} lib/libhz.so.0.0 $(DESTDIR)$(PREFIX)/lib
+ ln -sf libhz.so.0.0 $(DESTDIR)$(PREFIX)/lib/libhz.so.0
+ ln -sf libhz.so.0.0 $(DESTDIR)$(PREFIX)/lib/libhz.so
+ ${BSD_INSTALL_DATA} lib/libhz.a $(DESTDIR)$(PREFIX)/lib
+ ${BSD_INSTALL_DATA} include/*.h $(DESTDIR)$(PREFIX)/include
+ ln -sf autogb $(DESTDIR)$(PREFIX)/bin/autob5
|