[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / src / kxx

Annotation of OpenXM/src/kxx/Makefile, Revision 1.3

1.2       takayama    1: ######### configurations.
1.3     ! takayama    2: ##  $OpenXM: OpenXM/src/kxx/Makefile,v 1.2 1999/10/30 02:24:26 takayama Exp $
1.1       maekawa     3: KANHOME = ../SSkan
                      4:
                      5: LFLAG =
                      6: #LFLAG = -lnsl -lsocket /usr/ucblib/libucb.a
                      7:
                      8: #CFLAGS = -DSOLARIS
                      9: CFLAGS = -g
                     10: MYOSTYPE = linux
                     11:
                     12: ########## end of configurations
                     13: ### Set the server name in oxmain.c if you do not use the environmental
                     14: ### variable LOAD_SM1_PATH.  cf. $KANHOME/lib/ox.sm1
                     15:
                     16: all : all-plugin kanlib.a ox ox_sm1  oxlog
                     17:
                     18: all2 : all-plugin kanlib.a ox ox_sm1 testclient oxlog
                     19:
                     20: dist :
                     21:        ./makeDist
                     22:
                     23: ## ox_null can no longer be compiled.
                     24:
                     25: ## This is the Makefile at kxx.
                     26: ## 1998, 2/7  , Old version is at S/kan.backup/kxx.tar.gz.19980206
                     27: ##
                     28: .c.o :
                     29:        gcc  $(CFLAGS) -c  $<
                     30:
                     31: all-plugin :
                     32:        (cd $(KANHOME)/plugin ; make )
                     33: kanlib.a :
                     34:        (cd $(KANHOME)/Kan ; make kanlib.a)
                     35: ox.a :
                     36:        /bin/rm -f ox.a
                     37:        ln -s $(KANHOME)/plugin/ox.a ox.a
                     38: ox_kan.h :
                     39:        /bin/rm -f ox_kan.h
                     40:        ln -s $(KANHOME)/plugin/ox_kan.h ox_kan.h
                     41:
                     42: ox : oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o ox_kan.h
                     43:        gcc $(CFLAGS) oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o ox  $(LFLAG)
                     44:
                     45: ox_null : oxserver00.c ox.a nullstackmachine.o file2.o ox_kan.h
                     46:        gcc $(CFLAGS) oxserver00.c ox.a nullstackmachine.o file2.o -o ox_null  $(LFLAG)
                     47:
                     48: ox_sm1 : oxserver00.c sm1stackmachine.o ox_kan.h ox.a $(KANHOME)/Kan/kanlib.a
                     49:        (cd $(KANHOME)/Kan ; make kanlib.a)
                     50:        gcc $(CFLAGS) oxserver00.c sm1stackmachine.o -o ox_sm1  $(LFLAG) $(KANLIB)
                     51:
                     52: oxlog : oxlog.c
                     53:        gcc -o oxlog oxlog.c
                     54:
                     55: ## file2.c file2.h is in SSkan/plugin/
                     56: file2.o : $(KANHOME)/plugin/file2.c  $(KANHOME)/plugin/file2.h
                     57:        gcc $(CFLAGS) -DKXX=1 -I$(KANHOME)/plugin -c $(KANHOME)/plugin/file2.c
                     58:
                     59: nullstackmachine.o : nullstackmachine.c ox_kan.h
                     60: sm1stackmachine.o : sm1stackmachine.c  ox_kan.h
                     61:
                     62: testclient : testclient.c ox.a file2.o ox_kan.h
                     63:        gcc $(CFLAGS) testclient.c -o testclient ox.a file2.o $(LFLAG)
                     64:
                     65:
                     66: KANLIB = $(KANHOME)/Kan/kanlib.a $(KANHOME)/gmp/libgmp.a $(KANHOME)/gmp/mpn/libmpn.a $(KANHOME)/gc/gc.a
                     67:
                     68: ## file2 should be linked from kanlib.a
                     69:
                     70: testclient2a : testclient2.c ox.a  ox_kan.h $(KANHOME)/Kan/kanlib.a
                     71:        gcc $(CFLAGS) -I$(KANHOME)/Kan testclient2.c ox.a  -o testclient2a  $(LFLAG) $(KANLIB)
                     72:
                     73: testclient2 : testclient2.c  ox_kan.h $(KANHOME)/Kan/kanlib.a ox.a
                     74:        gcc $(CFLAGS) -I$(KANHOME)/Kan testclient2.c -o testclient2  $(LFLAG) $(KANLIB)
                     75:
                     76:
                     77: clean :
                     78:        /bin/rm -f ox testclient ox_null ox_sm1 testclient2 core *.o a.out *.dvi *.aux openxxx.log  ox_sm1 oxlog *~
                     79:
                     80: BACKUPDIR = Old/19980112
                     81: backup :
                     82:        /bin/cp Makefile *.c *.h *.sm1 $(BACKUPDIR)
                     83:
                     84: PR = lpt1
                     85: print :
                     86:        a2ps ox.sm1 | lpr -P$(PR)
                     87:        a2ps oxasir.sm1 | lpr -P$(PR)
                     88:        a2ps ox-1.sm1 | lpr -P$(PR)
                     89:        a2ps ox_kan.h | lpr -P$(PR)
                     90:        a2ps testclient.c | lpr -P$(PR)
                     91:        a2ps oxmain.c | lpr -P$(PR)
                     92:        a2ps oxserver00.c | lpr -P$(PR)
                     93:        a2ps nullstackmachine.c | lpr -P$(PR)
                     94:        a2ps $(KANHOME)/plugin/oxmisc.c | lpr -P$(PR)
                     95:        a2ps $(KANHOME)/plugin/oxmisc2.c | lpr -P$(PR)
                     96:        a2ps $(KANHOME)/plugin/mytcpio.c | lpr -P$(PR)
                     97:        a2ps $(KANHOME)/plugin/oxmisc2.h | lpr -P$(PR)
                     98:        a2ps $(KANHOME)/plugin/oxx.h | lpr -P$(PR)
                     99:        a2ps $(KANHOME)/plugin/file2.c | lpr -P$(PR)
                    100:        a2ps $(KANHOME)/plugin/file2.h | lpr -P$(PR)
                    101:
                    102: install :
1.2       takayama  103:        /bin/rm -f ../bin/ox ../bin/ox_sm1 ../bin/oxlog
                    104:        cp  ox ox_sm1 oxlog ../bin
1.3     ! takayama  105:        ln -f -s ../../../bin/ox $(KANHOME)/lib/bin/ox
        !           106:        ln -f -s ../../../bin/oxlog $(KANHOME)/lib/bin/oxlog
        !           107:        ln -f -s ../../../bin/ox_sm1 $(KANHOME)/lib/bin/ox_sm1
        !           108:        ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_forAsir
        !           109:        ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_gnuplot
        !           110:        ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_phc
        !           111:        ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_tigers
        !           112:        ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_basicCD
1.1       maekawa   113:
1.2       takayama  114: install2 :
1.3     ! takayama  115:        ln -f -s  ../src/kxx/ox ../bin/ox
        !           116:        ln -f -s  ../src/kxx/ox_sm1 ../bin/ox_sm1
        !           117:        ln -f -s  ../src/kxx/oxlog ../bin/oxlog
1.1       maekawa   118:
                    119:
                    120: clean-binary :
                    121:        echo " ../open-sm1-binary*  will be removed"
                    122:        echo "after 10 seconds. To cancel type in ctrl-C."
                    123:        ( sleep 10 ; /bin/rm -rf ../open-sm1-binary* )

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>