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()
|