File: Makefile

package info (click to toggle)
xa%2Bcv 0.6-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 264 kB
  • ctags: 162
  • sloc: ansic: 1,323; makefile: 71; sh: 67
file content (48 lines) | stat: -rw-r--r-- 1,180 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
36
37
38
39
40
41
42
43
44
45
46
47
48
#
# Makefile for xa+cv-0.5
# By Yuan-Chung Cheng <platin@ms31.hinet.net>
# 
# * Sat Apr 17 1999 Yuan-Chung Cheng <platin@ms31.hinet.net>
# - first build this file.
#

CC = gcc
CFLAGS = -fPIC -O2
SHAREFLAGES = -shared
SHARELIBS = -ldl
INSTALL = /usr/bin/install -c

DESTDIR = $(DEBDESTDIR)/usr/lib/chinese/xa+cv
CONGDIR = $(DEBDESTDIR)/etc
BINDIR = $(DEBDESTDIR)/usr/bin
INCLUDEDIR = -I/usr/include -I/usr/X11R6/include

all: wrap.so

%.o : %.c
	$(CC) -c $(CFLAGS) $(INCLUDEDIR) $< -o $@

wrap.so: cli_xcin.o wrap.o select_mode.o config.h
	$(CC) $(SHAREFLAGES) $(SHARELIBS) -o wrap.so cli_xcin.o \
		wrap.o select_mode.o
	strip wrap.so

debug: cli_xcin.o select_mode.o config.h
	rm -f wrap.o
	$(CC) -DXA_DEBUG -c $(CFLAGS) $(INCLUDEDIR) -o wrap.o wrap.c
	$(CC) $(SHAREFLAGES) $(SHARELIBS) -DXA_DEBUG -o wrap.so cli_xcin.o \
		wrap.o select_mode.o
	strip wrap.so

clean:
	rm -f *.o *.so core

install: all
	$(INSTALL) -m 755 wrap.so $(DESTDIR)
	mkdir -p $(CONGDIR) && \
		$(INSTALL) -m 644 xa+cv.config $(CONGDIR)
	$(INSTALL) -m 755 debian/xa $(BINDIR)
	$(INSTALL) -m 755 debian/cv $(BINDIR)
	$(INSTALL) -m 755 debian/cnetscape $(BINDIR)
	$(INSTALL) -m 755 debian/cEterm $(BINDIR)