version 1.10, 2000/03/11 01:18:24 |
version 1.14, 2000/05/24 15:24:53 |
|
|
# $OpenXM: OpenXM/src/k097/Makefile,v 1.9 2000/02/01 04:24:18 takayama Exp $ |
# $OpenXM: OpenXM/src/k097/Makefile,v 1.13 2000/04/10 05:29:24 takayama Exp $ |
# targets |
# targets |
# all |
# all |
# compile |
# compile |
# intall : all install-lib |
# intall : all install-lib |
# |
# |
# todo : install-lib-for-debug |
# install-for-debug |
# |
# |
BDATE =19970416 |
BDATE =19970416 |
CC = gcc |
CC = gcc |
GC = $(KHOME)/gc/gc.a |
GC = $(KHOME)/gc/gc.a |
OpenXM_lib=../../lib |
OpenXM_lib=../../lib |
DDD=-D_BSD_SOURCE |
DDD=-D_BSD_SOURCE |
LINKFLAG=-static |
#STATIC_LINK_FLAG=-static |
|
STATIC_LINK_FLAG= |
|
|
## Kan source. kan sources must be built up by hand. |
## Kan source. kan sources must be built up by hand. |
KHOME = ../kan96xx |
KHOME = ../kan96xx |
Line 19 KHOME = ../kan96xx |
|
Line 20 KHOME = ../kan96xx |
|
|
|
## |
## |
LOAD_K_PATH ='"/usr/local/lib/k0/"' |
LOAD_K_PATH ='"/usr/local/lib/k0/"' |
LOAD_SM1_PATH2 ='"/home/nobuki/SSkan/Kan/"' |
LOAD_SM1_PATH2 ='"/this_directory_does_not_exists/"' |
## |
## |
GMP_HOME = $(KHOME)/gmp |
GMP_HOME = $(KHOME)/gmp |
LIBGMP=$(GMP_HOME)/libgmp.a |
LIBGMP=$(GMP_HOME)/libgmp.a |
|
|
sed -f new.sed <Makefile >Makefile.new |
sed -f new.sed <Makefile >Makefile.new |
|
|
d0 : simple.tab.o d.o dic.o dm.c |
d0 : simple.tab.o d.o dic.o dm.c |
$(CC) ${LINKFLAG} $(FLAG) $(DDD) -o d0 dm.c d.o dic.o simple.tab.o |
$(CC) ${STATIC_LINK_FLAG} $(FLAG) $(DDD) -o d0 dm.c d.o dic.o simple.tab.o |
|
|
d.o : d.c simple.tab.h Stable/sm1symbol.h |
d.o : d.c simple.tab.h Stable/sm1symbol.h |
$(CC) $(FLAG) $(DDD) -o d.o -c d.c |
$(CC) $(FLAG) $(DDD) -o d.o -c d.c |
Line 102 KXXASIR = simple.tab.o d.o ki-asir.o dic.o |
|
Line 103 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 |
if test `uname` = "SunOS" ; \ |
if test `uname` = "SunOS" ; \ |
then \ |
then \ |
$(CC) ${LINKFLAG} $(FLAG) $(DDD) -I$(GMP_HOME) -I$(KAN_HOME) -o k0 k0.o $(KXX) $(KAN_HOME)/kanlib.a $(LIBGMP) $(GC) $(EXTRALIB) $(SOLARIS_SLIB) ; \ |
$(CC) $(FLAG) $(DDD) -I$(GMP_HOME) -I$(KAN_HOME) -o k0 k0.o $(KXX) $(KAN_HOME)/kanlib.a $(LIBGMP) $(GC) $(EXTRALIB) $(SOLARIS_SLIB) ; \ |
else \ |
else \ |
$(CC) ${LINKFLAG} $(FLAG) $(DDD) -I$(GMP_HOME) -I$(KAN_HOME) -o k0 k0.o $(KXX) $(KAN_HOME)/kanlib.a $(LIBGMP) $(GC) $(EXTRALIB) ; \ |
$(CC) ${STATIC_LINK_FLAG} $(FLAG) $(DDD) -I$(GMP_HOME) -I$(KAN_HOME) -o k0 k0.o $(KXX) $(KAN_HOME)/kanlib.a $(LIBGMP) $(GC) $(EXTRALIB) ; \ |
fi |
fi |
|
|
k0.o : k2.c |
k0.o : k2.c |
|
|
install : all install-lib |
install : all install-lib |
cp -f k0 d0 ../../bin |
cp -f k0 d0 ../../bin |
|
|
|
install-for-debug : all install-lib-for-debug |
|
rm -f ../../bin/k0 ../../bin/d0 |
|
(cd ../../bin ; ln -s ../src/k097/k0 k0) |
|
(cd ../../bin ; ln -s ../src/k097/d0 d0) |
|
|
install-lib : |
install-lib : |
/bin/rm -rf $(OpenXM_lib)/k097 |
/bin/rm -rf $(OpenXM_lib)/k097 |
mkdir $(OpenXM_lib)/k097 |
mkdir $(OpenXM_lib)/k097 |
cp -f $(KHOME)/Doc/var.sm1 $(OpenXM_lib)/k097 |
cp -f $(KHOME)/Doc/var.sm1 $(OpenXM_lib)/k097 |
cp -rf *.sm1 *.k *.kk debug $(OpenXM_lib)/k097 |
cp -rf *.sm1 *.k *.kk debug $(OpenXM_lib)/k097 |
|
|
install-for-debug : |
install-lib-for-debug : |
/bin/rm -rf $(OpenXM_lib)/k097 |
/bin/rm -rf $(OpenXM_lib)/k097 |
ln -s ../src/k097 $(OpenXM_lib)/k097 |
ln -s ../src/k097 $(OpenXM_lib)/k097 |
|
|