1 # Linux makefile for compiling SOFTX86
2 # (C) 2003 Jonathan Campbell all rights reserved.
8 # This Makefile really just calls Make to compile sub-projects.
11 all:: __autodetect_softx87 __autodetect_nasm
14 if
[ -d softx87
]; then make
-C softx87
; fi
21 if
[ -d softx87
]; then make
-C softx87
clean; fi
22 make
-C softx86dbg
clean
24 # clean it all for distribution
25 distclean:: __fake_makes
26 make
-C samples
distclean
27 make
-C softx86
distclean
28 if
[ -d softx87
]; then make
-C softx87
distclean; fi
29 make
-C softx86dbg
distclean
30 rm -f softx86dbg
/Makefile.softx86
31 rm -f samples
/Makefile.nasm
32 rm -f lib
/*.exp
# clean up excess files from MSVC++
36 # copy libsoftx86 and friends to the /usr/include and /usr/lib directories.
38 if
[ -f
install.sh
]; then sh
install.sh
; fi
40 # run shell script that looks for soft87 project source
41 # tree (to be extracted within this source tree)
43 .
/autodetect_softx87.sh
45 # run shell script to look for NASM
49 # create temporary empty versions of the
50 # include Makefiles that some rely on
51 # so they work. They will be deleted when
52 # "make clean" or "make distclean" is finished
54 if
[[ !( -f samples
/Makefile.nasm
) ]]; then echo
"# nothing" >samples
/Makefile.nasm
; fi
55 if
[[ !( -f softx86dbg
/Makefile.softx86
) ]]; then echo
"# nothing" >softx86dbg
/Makefile.softx86
; fi