File: Makefile

package info (click to toggle)
chinput 3.0.2-19
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 2,140 kB
  • ctags: 2,818
  • sloc: ansic: 52,778; makefile: 164; perl: 23
file content (35 lines) | stat: -rw-r--r-- 847 bytes parent folder | download | duplicates (2)
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
prefix=/usr

CC = gcc -Wall
OBJS = kpengine.o scoring.o util.o

CFLAGS = $(OPTIMIZE) $(GTKINC) -DFOR_PILOT_COMPAT

all: kpengine hzgb.dat hzbig5.dat

scoring.o: scoring.c
	$(CC) -c -o scoring.o $(CFLAGS) scoring.c

util.o: util.c
	$(CC) -c -o util.o $(CFLAGS) util.c

kpengine.o: kpengine.c
	$(CC) -c -o kpengine.o $(CFLAGS) kpengine.c

kpengine: $(OBJS)
	$(CC) -o kpengine $(OBJS)

hzgb.dat: strokedata_gb.h conv_jdata.pl
	perl conv_jdata.pl < strokedata_gb.h > hzgb.dat

hzbig5.dat: strokedata_big5.h conv_jdata.pl
	perl conv_jdata.pl < strokedata_big5.h > hzbig5.dat

install: kpengine hzgb.dat hzbig5.dat
	mkdir -p $(prefix)/share/chinput
	cp -f hzgb.dat $(prefix)/share/chinput/hzgb.dat
	cp -f hzbig5.dat $(prefix)/share/chinput/hzbig5.dat
	cp -f kpengine $(prefix)/bin/kpengine.chinput

clean:
	rm -rf *.bak *.o hzgb.dat hzbig5.dat kpengine