1# @(#)BOOTSTRAP	1.5 18/02/19 Copyright 1999-2018 J. Schilling
2
3To bootstrap smake:
4
5**** If you are of good luck and have a working 'make' program on your system:
6
7You may simply try to call 'make' in the top level directory (the
8directory where this file is located). In this case, a bootstrap 'smake'
9binary is created in the psmake/ directory. To be able to do this, a
10shell script called 'MAKE-all' which is located inside the psmake directory
11is executed. This shell script calls configure in the psmake directory
12and then compiles 'smake' in the psmake directory.
13
14If psmake/smake has been created, the top level make executes psmake/smake
15which is able to deal with the Schily SING makefile system that is used to
16compile the final 'smake'. The first action will be again to (automatically)
17call configure from the makefiles. Sorry for this inconvenience but I did not
18find any safe way that would work with only one run of configure.
19For more information on the makefile system please read the file 'COMPILE'.
20
21	If this did work, then you already compiled the final smake binary.
22
23
24**** If this did not work:
25
26You should first try to use the semi automated method:
27
281)	chdir to 'psmake'
292)	call ./MAKE-all
30
31	If this did work, then you need to chdir back to '..' and then
32	call psmake/smake to create the final smake binary.
33
34If you are trying to compile on DJGPP, please use the DOS script "dos_make.bat"
35
36
37**** If the above methods did not work......
38
39If it doesn't work to simply call 'make' or if your system does not provide
40a working make program, follow the instructions below.
41
42Please first read the NOTE section between the star lines below step 3):
43
441)	chdir to 'psmake'
45/*--------------------------------------------------------------------------*/
46
472)	If you are on a system that supports symbolic links, call:
48
49	./lnfiles
50
51	If you are on a system without symlink support, call:
52
53	./cpfiles
54/*--------------------------------------------------------------------------*/
55
563)	call ./configure'
57
58	If you are using gcc, call:
59		CC=gcc ./configure
60	or
61		env CC=gcc ./configure
62
63	On HP-UX 10.x or newer call:
64
65		CFLAGS=-Ae ./configure
66
67	to use the the compiler that comes with HP-UX
68/*--------------------------------------------------------------------------*/
69
704)	call 'make'
71
72	If you are using gcc, call 'make CC=gcc'
73
74	On HP-UX 10.x or newer call:
75
76		make CDEFS=-Ae
77
78	to use the the compiler that comes with HP-UX
79
80*****************************************************************************
81
82	NOTE:	Steps 2 .. 4 are automated in a shell script called MAKE-all
83		that can be found inside the 'psmake' directory.
84
85		The MAKE-all script will allow you to compile the first 'smake'
86		stage without having a make utility on your system.
87
88		To call the MAKE-all shell script simply type ./MAKE-all or
89		sh ./MAKE-all if your system does not support the #!/bin/sh
90		shell notation.
91
92*****************************************************************************
93
94/*--------------------------------------------------------------------------*/
95
965)	cd ..
97
98/*--------------------------------------------------------------------------*/
996)	call 'psmake/smake'
100
101	On HP-UX 10.x or newer call:
102
103		psmake/smake CCOM=cc
104
105	to use the the compiler that comes with HP-UX
106/*--------------------------------------------------------------------------*/
107