blob: 4a84cd96405cabdeeec98a8621d49f2112f9bdca (
plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
$NetBSD: patch-ab,v 1.2 2006/02/22 14:55:54 rxg Exp $
--- Makefile.orig 2006-02-16 17:36:08.000000000 +0800
+++ Makefile
@@ -23,7 +23,7 @@ OBJS_gcin2tab=gcin2tab.o gtab-util.o uti
OBJS_gcin_steup=gcin-setup.o gcin-conf.o util.o gcin-send.o gcin-settings.o \
gcin-setup-list.o gcin-switch.o locale.o gcin-setup-pho.o about.o
WALL=-Wall
-CFLAGS= $(WALL) $(OPTFLAGS) $(GTKINC) -I./IMdkit/include -DDEBUG="0$(GCIN_DEBUG)" \
+CFLAGS= $(WALL) $(GTKINC) -I./IMdkit/include \
-DGCIN_TABLE_DIR=\"$(GCIN_TABLE_DIR)\" -DDOC_DIR=\"$(DOC_DIR)\" \
-DGCIN_ICON_DIR=\"$(GCIN_ICON_DIR)\" -DGCIN_VERSION=\"$(GCIN_VERSION)\" \
-DGCIN_SCRIPT_DIR=\"$(GCIN_SCRIPT_DIR)\" -DGCIN_BIN_DIR=\"$(GCIN_BIN_DIR)\" \
@@ -36,8 +36,8 @@ endif
im-srv = im-srv/im-srv.a
-.c.E:
- $(CC) $(CFLAGS) -E -o $@ $<
+.c.o:
+ $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) -o $@ $<
PROGS=gcin tsd2a tsa2d phoa2d phod2a tslearn gcin-setup gcin2tab juyin-learn sim2trad
PROGS_CV=kbmcv
@@ -96,24 +96,16 @@ ibin:
install:
install -d $(datadir)/icons
- install gcin.png $(datadir)/icons
+ install -m 644 gcin.png $(datadir)/icons
install -d $(GCIN_ICON_DIR_i)
install -m 644 icons/* $(GCIN_ICON_DIR_i)
install -d $(bindir)
$(MAKE) -C data install
$(MAKE) -C im-client install
$(MAKE) -C gtk-im install
- if [ $(QT_IM) = 'Y' ]; then $(MAKE) -C qt-im install; fi
- if [ $(prefix) = /usr/local ]; then \
- install -m 644 gcin.png /usr/share/icons; \
- install -d $(DOC_DIR); \
- install -m 644 README Changelog $(DOC_DIR); \
- install $(PROGS) $(bindir); \
- else \
install -d $(DOC_DIR_i); \
install -m 644 README Changelog $(DOC_DIR_i); \
install -s $(PROGS) $(bindir); \
- fi
$(MAKE) -C scripts install
$(MAKE) -C menu install
$(MAKE) -C man install
|