version 1.1, 1999/10/08 02:12:14 |
version 1.2, 1999/11/11 12:36:06 |
|
|
|
# $OpenXM$ |
BDATE =19970416 |
BDATE =19970416 |
CC = gcc |
CC = gcc |
GC = $(KHOME)/gc/gc.a |
GC = $(KHOME)/gc/gc.a |
|
|
########### end of configuration. |
########### end of configuration. |
|
|
### These are to switch k2 linux and k2 solaris version. |
### These are to switch k2 linux and k2 solaris version. |
SOLARIS_SLIB = |
SOLARIS_SLIB = -lsocket -lnsl -lc /usr/ucblib/libucb.a |
#SOLARIS_SLIB = -lsocket -lnsl -lc /usr/ucblib/libucb.a |
|
### if you use K2LFLAG below, you don't need ALIB. |
### if you use K2LFLAG below, you don't need ALIB. |
#K2LFLAG = -lm $(SOLARIS_ALIB) |
#K2LFLAG = -lm $(SOLARIS_ALIB) |
K2LFLAG = -lfunc -lparse -lengine -lm -Wl,-rpath,/usr/X11R6/lib |
K2LFLAG = -lfunc -lparse -lengine -lm -Wl,-rpath,/usr/X11R6/lib |
Line 90 KXX = simple.tab.o d.o ki.o dic.o |
|
Line 90 KXX = simple.tab.o d.o ki.o dic.o |
|
KXXASIR = simple.tab.o d.o ki-asir.o dic.o |
KXXASIR = simple.tab.o d.o ki-asir.o dic.o |
|
|
k0 : k0.o $(KXX) $(KAN_HOME)/kanlib.a $(GC) $(GMP) $(KAN_HOME)/lookup.h |
k0 : k0.o $(KXX) $(KAN_HOME)/kanlib.a $(GC) $(GMP) $(KAN_HOME)/lookup.h |
$(CC) $(FLAG) -I$(GMP_HOME) -I$(KAN_HOME) -o k0 k0.o $(KXX) $(KAN_HOME)/kanlib.a $(LIBGMP) $(GC) $(EXTRALIB) |
if test `uname` = "SunOS" ; \ |
|
then \ |
|
$(CC) $(FLAG) -I$(GMP_HOME) -I$(KAN_HOME) -o k0 k0.o $(KXX) $(KAN_HOME)/kanlib.a $(LIBGMP) $(GC) $(EXTRALIB) $(SOLARIS_SLIB) ; \ |
|
else \ |
|
$(CC) $(FLAG) -I$(GMP_HOME) -I$(KAN_HOME) -o k0 k0.o $(KXX) $(KAN_HOME)/kanlib.a $(LIBGMP) $(GC) $(EXTRALIB) ; \ |
|
fi |
|
|
k0.o : k2.c |
k0.o : k2.c |
$(CC) -c $(FLAG) -I$(GMP_HOME) -I$(KAN_HOME) -o k0.o k2.c |
$(CC) -c $(FLAG) -I$(GMP_HOME) -I$(KAN_HOME) -o k0.o k2.c |