=================================================================== RCS file: /home/cvs/OpenXM/src/kxx/Attic/Makefile,v retrieving revision 1.1.1.1 retrieving revision 1.4 diff -u -p -r1.1.1.1 -r1.4 --- OpenXM/src/kxx/Attic/Makefile 1999/10/08 02:12:13 1.1.1.1 +++ OpenXM/src/kxx/Attic/Makefile 1999/11/03 00:22:50 1.4 @@ -1,12 +1,11 @@ -######### configurations. +######### configurations. +## $OpenXM: OpenXM/src/kxx/Makefile,v 1.3 1999/11/02 13:11:11 takayama Exp $ KANHOME = ../SSkan LFLAG = -#LFLAG = -lnsl -lsocket /usr/ucblib/libucb.a +SOLARISLFLAG = -lnsl -lsocket /usr/ucblib/libucb.a -#CFLAGS = -DSOLARIS CFLAGS = -g -MYOSTYPE = linux ########## end of configurations ### Set the server name in oxmain.c if you do not use the environmental @@ -39,14 +38,29 @@ ox_kan.h : ln -s $(KANHOME)/plugin/ox_kan.h ox_kan.h ox : oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o ox_kan.h - gcc $(CFLAGS) oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o ox $(LFLAG) + if test `uname` = "SunOS" ; \ + then \ + gcc $(CFLAGS) oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o ox $(SOLARISLFLAG) ; \ + else \ + gcc $(CFLAGS) oxmain.c $(KANHOME)/plugin/mytcpio.o $(KANHOME)/plugin/oxmisc.o file2.o -o ox $(LFLAG) ; \ + fi ox_null : oxserver00.c ox.a nullstackmachine.o file2.o ox_kan.h - gcc $(CFLAGS) oxserver00.c ox.a nullstackmachine.o file2.o -o ox_null $(LFLAG) + if test `uname` = "SunOS" ; \ + then \ + gcc $(CFLAGS) oxserver00.c ox.a nullstackmachine.o file2.o -o ox_null $(SOLARISLFLAG) ; \ + else \ + gcc $(CFLAGS) oxserver00.c ox.a nullstackmachine.o file2.o -o ox_null $(LFLAG) ; \ + fi ox_sm1 : oxserver00.c sm1stackmachine.o ox_kan.h ox.a $(KANHOME)/Kan/kanlib.a (cd $(KANHOME)/Kan ; make kanlib.a) - gcc $(CFLAGS) oxserver00.c sm1stackmachine.o -o ox_sm1 $(LFLAG) $(KANLIB) + if test `uname` = "SunOS" ; \ + then \ + gcc $(CFLAGS) oxserver00.c sm1stackmachine.o -o ox_sm1 $(SOLARISLFLAG) $(KANLIB) ; \ + else \ + gcc $(CFLAGS) oxserver00.c sm1stackmachine.o -o ox_sm1 $(LFLAG) $(KANLIB) ; \ + fi oxlog : oxlog.c gcc -o oxlog oxlog.c @@ -99,31 +113,22 @@ print : a2ps $(KANHOME)/plugin/file2.h | lpr -P$(PR) install : - cp ox ox_sm1 oxlog ../bin - ln -sf ../../../bin/ox $(KANHOME)/lib/bin/ox - ln -sf ../../../bin/oxlog $(KANHOME)/lib/bin/oxlog - ln -sf ../../../bin/ox_sm1 $(KANHOME)/lib/bin/ox_sm1 - ln -sf ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_forAsir - ln -sf ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_gnuplot - ln -sf ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_phc - ln -sf ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_tigers - ln -sf ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_basicCD + /bin/rm -f ../bin/ox ../bin/ox_sm1 ../bin/oxlog + cp ox ox_sm1 oxlog ../bin + ln -f -s ../../../bin/ox $(KANHOME)/lib/bin/ox + ln -f -s ../../../bin/oxlog $(KANHOME)/lib/bin/oxlog + ln -f -s ../../../bin/ox_sm1 $(KANHOME)/lib/bin/ox_sm1 + ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_forAsir + ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_gnuplot + ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_phc + ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_tigers + ln -f -s ./ox_sm1 $(KANHOME)/lib/bin/ox_sm1_basicCD +install2 : + ln -f -s ../src/kxx/ox ../bin/ox + ln -f -s ../src/kxx/ox_sm1 ../bin/ox_sm1 + ln -f -s ../src/kxx/oxlog ../bin/oxlog -noro : - cp $(KANHOME)/Kan/sm1 . - cp $(KANHOME)/Kan/debug/tower-sugar.sm1 . - cp $(KANHOME)/Kan/debug/tower.sm1 . - cp $(KANHOME)/Doc/factor-a.sm1 . - echo "sm1 ox ox_sm1 oxasir.sm1 oxasir.asir tower-sugar.sm1 tower.sm1 factor-a.sm1 are generated in yama:kxx/make noro on " > note.sm1binary.txt - date >> note.sm1binary.txt - tar czvf sm1binary.linux.tgz sm1 ox.sm1 oxasir.sm1 ox ox_sm1 oxlog2.txt oxasir.asir tower-sugar.sm1 tower.sm1 factor-a.sm1 note.sm1binary.txt - /bin/rm sm1 tower-sugar.sm1 tower.sm1 factor-a.sm1 note.sm1binary.txt - /bin/rm -f /fuji/taka/S/sm1binary.linux.tgz - mv sm1binary.linux.tgz /fuji/taka/S - -backup2 : - cp openxxx.tex $(HOME)/berkeley/gbhg3/Bak clean-binary : echo " ../open-sm1-binary* will be removed"