File: makefile

package info (click to toggle)
stardic 1.3.1-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,464 kB
  • ctags: 462
  • sloc: cpp: 3,671; makefile: 63; sh: 1
file content (51 lines) | stat: -rw-r--r-- 964 bytes parent folder | download | duplicates (3)
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
51
TRANSOBJ= trans.o image.o regdef.o

# modify those variables for yourself

# for linux
LDFLAGS= -L/usr/X11R6/lib -lXm -lXt -lXext -lX11

# for solaris
# LDFLAGS= -lXm -lXt -lXext -lX11

# for linux
CPPFLAGS= -I/usr/X11R6/include

# for solaris
#CPPFLAGS= -I/usr/dt/include -I/usr/openwin/include

#for CC
#CFLAGS=  +w -DNDEBUG

# for g++
CFLAGS = -O2 -g -Wall -DNDEBUG

CC= g++
#CC= CC

prefix = /usr/local
bindir = $(prefix)/bin
datadir = $(prefix)/share/stardic

.KEEP_STATE:
stardic:$(TRANSOBJ)
	$(LINK.c) -o stardic $(TRANSOBJ)

.cc.o:
	$(COMPILE.c) $<

install:
	test -d $(bindir) || mkdir -p $(bindir)
	test -d $(datadir)/hzfont || mkdir -p $(datadir)/hzfont
	install -m755 -p stardic $(bindir)
	install -m755 -p stardic-ft $(bindir)
	install -m644 -p transdic yblib *.xbm *.gif $(datadir)
	install -m644 -p hzfont/fonts.dir hzfont/*.pcf* $(datadir)/hzfont

clean:
	rm -f $(TRANSOBJ) stardic

distclean: clean
	rm -f *~ core

.PHONY: install clean distclean