File: Imakefile

package info (click to toggle)
canna 3.7p3-13
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 8,220 kB
  • ctags: 9,776
  • sloc: ansic: 85,928; sh: 2,777; yacc: 403; cpp: 389; lex: 379; makefile: 74; awk: 7
file content (53 lines) | stat: -rw-r--r-- 1,121 bytes parent folder | download | duplicates (12)
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
52
53
/* $Id: Imakefile,v 1.2 2003/09/17 10:15:09 aida_s Exp $ */
#include "../Canna.conf"

#ifdef SunArchitecture
CC = /usr/5bin/cc
#endif

#ifdef SYSV386
CC = cc
#endif

#ifdef usemalloc
SYS_LIBRARIES = -lmalloc -lcurses
#else
#ifdef RsArchitecture
SYS_LIBRARIES = -lcurses
#else
#ifdef i386Architecture
SYS_LIBRARIES = -lncurses
#else
SYS_LIBRARIES = -ltermcap -lcurses
#endif
#endif
#endif

CANNAROOT = ..
INCLUDES = -I$(CANNAROOT)/include
DEFINES = -DCANNALIBDIR=\"$(cannaLibDir)\"
OBJS = ccustom.o  parse.o lisp.o lex.o gram.o set.o wcanna.o util.o wiroha.o
SRCS = keydef.h iroha.h canna.h mfdef.h set.h \
		lisp.h symbolname.h \
		ccustom.c parse.c wcanna.c set.c lisp.c util.c \
		lex.l gram.y wiroha.c
TARGET = ccustom

AllTarget($(TARGET))

depend:: gram.h gram.c lex.c
gram.h gram.c:  gram.y iroha.h mfdef.h
	$(YACC) -d gram.y
	mv y.tab.h gram.h
	mv y.tab.c gram.c

lex.c: gram.o lex.l

clean::
	$(RM) y.tab.h y.tab.c lex.yy.c gram.h gram.c lex.c

NormalProgramTarget($(TARGET),$(OBJS),,,$(SYS_LIBRARIES))
InstallProgram($(TARGET),$(cannaBinDir))
InstallManPage($(TARGET),$(cannaManDir))
DependTarget()
LintTarget()