[comp.os.minix] Help with compiling 1.3 > 1.5

boyer@sumax.seattleu.edu (Chuck Boyer) (06/14/91)

Question: (I am a 'green' beginner); I can not get the 'kernel' to compile
in applying the 1.3 > 1.5 cdiffs/patch upgrade. 
How come the Makefile (was at_makefile, copied to Makefile) doesn't call
on some of the '.c' files in the directory /kernel? Is this a flaw in the
Makefile? (Why publish it as a 'beginners'' kit? if it is flawed? I guess
I will learn realy fast from the responses I get as to why.)
I am applying the cdiffs/upgrade on an 'at'. In the below listed 'Makefile'
it leaves out some of the '.c's (listed following the Makefile listing
below) which gives the make error 256?
-------------------------------------
 
 The kernel dir contains xt_wini.c and at_wini.c.  Before running make
# you must copy one of these to wini.c, depending on which controller you
# have.  If you do not have a hard disk, you MUST choose one of them at random.
# On a PC, cpp and cem are in /lib and will be removed to make space while
# linking the kernel.  On an AT, they are in /usr/lib are are not removed.
# This is because they have to be in /lib on a PC; the diskette is too small
# for them to be in /usr/lib.  You can change this by editing commands/cc.c.
#
# The CFLAGS values are:
#  -Di8088      - required on an 8088/80286/80386 CPU; forbidden on a 68000
#  -F           - run cpp and cem sequentially (used when memory is tight)
#  -T.          - put temporaries in working directory (when RAM disk is small)
#
CFLAGS= -Di8088 -F -T.
h=../h
l=/usr/lib
 
obj =   mpx88.s main.s tty.s floppy.s wini.s system.s proc.s clock.s memory.s \
        console.s rs232.s printer.s table.s klib88.s dmp.s
 
cobjs = main.s tty.s floppy.s wini.s system.s proc.s clock.s memory.s \
        console.s rs232.s printer.s table.s dmp.s
 
kernel: makefile $(obj) $l/libc.a
        @echo "Start linking Kernel."
        @asld -o kernel -T. $(obj) $l/libc.a $l/end.s
        @echo "Kernel done.  "
 
clean:
        rm -f $(cobjs)
 
clock.s:        const.h type.h $h/const.h $h/type.h
clock.s:        $h/callnr.h
clock.s:        $h/com.h
clock.s:        $h/error.h
clock.s:        $h/signal.h
clock.s:        glo.h
clock.s:        proc.h
 
console.s:      const.h type.h $h/const.h $h/type.h
console.s:      $h/callnr.h
console.s:      $h/com.h
console.s:      $h/error.h
console.s:      $h/sgtty.h
console.s:      $h/signal.h
console.s:      glo.h
console.s:      proc.h
console.s:      tty.h
console.s:      ttymaps.h
 
floppy.s:       const.h type.h $h/const.h $h/type.h
floppy.s:       $h/callnr.h
floppy.s:       $h/com.h
floppy.s:       $h/error.h
floppy.s:       glo.h
floppy.s:       proc.h
 
 
dmp.s:          const.h type.h $h/const.h $h/type.h
dmp.s:          $h/callnr.h
dmp.s:          $h/com.h
dmp.s:          $h/error.h
dmp.s:          glo.h
dmp.s:          proc.h
 
main.s:         const.h type.h $h/const.h $h/type.h
main.s:         $h/callnr.h
main.s:         $h/com.h
main.s:         $h/error.h
main.s:         glo.h
main.s:         proc.h
 
memory.s:       const.h type.h $h/const.h $h/type.h
memory.s:       $h/callnr.h
memory.s:       $h/com.h
memory.s:       $h/error.h
memory.s:       proc.h
 
printer.s:      const.h type.h $h/const.h $h/type.h
printer.s:      $h/callnr.h
printer.s:      $h/com.h
printer.s:      $h/error.h
printer.s:      proc.h
printer.s:      glo.h
 
proc.s:         const.h type.h $h/const.h $h/type.h
proc.s:         $h/callnr.h
proc.s:         $h/com.h
proc.s:         $h/error.h
proc.s:         glo.h
proc.s:         proc.h
 
rs232.s:        const.h type.h $h/const.h $h/type.h
rs232.s:        $h/callnr.h
rs232.s:        $h/com.h
rs232.s:        $h/error.h
rs232.s:        $h/sgtty.h
rs232.s:        $h/signal.h
rs232.s:        glo.h
rs232.s:        proc.h
rs232.s:        tty.h
 
system.s:       const.h type.h $h/const.h $h/type.h
system.s:       $h/callnr.h
system.s:       $h/com.h
system.s:       $h/error.h
system.s:       $h/signal.h
system.s:       glo.h
system.s:       proc.h
 
table.s:        const.h type.h $h/const.h $h/type.h $h/com.h
table.s:        glo.h
table.s:        proc.h
table.s:        tty.h
 
tty.s:  const.h type.h $h/const.h $h/type.h
tty.s:  $h/callnr.h
tty.s:  $h/com.h
tty.s:  $h/error.h
tty.s:  $h/sgtty.h
tty.s:  $h/signal.h
tty.s:  glo.h
tty.s:  proc.h
tty.s:  tty.h
tty.s:  ttymaps.h
 
wini.s: const.h type.h $h/const.h $h/type.h
wini.s: $h/callnr.h
wini.s: $h/com.h
wini.s: $h/error.h
wini.s: proc.h
 
------------------------------
 
-r--r-----  1   root     3188 Jan  1 02:48 Makefile
-rw-r--r--  1   root      909 Jan  1 00:07 Read_me
-rw-r--r--  1   root     3188 Jan  1 01:27 at_makefile
-r-xr-x---  1   root    12039 Jan  1 00:30 bios_wini.c
-rw-r--r--  1   root     5899 Jan  1 01:12 bios_wini.s
-rw-r--r--  1   root    14240 Jan  1 00:32 clock.c
-rw-r--r--  1   root     3627 Jan  1 03:12 clock.s
-r--r-----  1   root     1152 Jan  1 00:30 config
-rw-rw-rw-  1   root    25528 Jan  1 00:34 console.c
-rw-r--r--  1   root    11399 Jan  1 03:13 console.s
-rw-r--r--  1   root     6614 Jan  1 00:34 const.h
-r--r-----  1   root     9268 Jan  1 00:30 cstart.c
-rw-r--r--  1   root     3297 Jan  1 02:47 cstart.s
-rw-r--r--  1   root     3257 Jan  1 00:34 dmp.c
-rw-r--r--  1   root     3083 Jan  1 03:14 dmp.s
-r-xr-x---  1   root     2010 Jan  1 00:29 exception.c
-rw-r--r--  1   root     2072 Jan  1 01:14 exception.s
-rw-r--r--  1   root    38038 Jan  1 00:34 floppy.c
-rw-r--r--  1   root    11567 Jan  1 03:10 floppy.s
-rw-r--r--  1   root     2905 Jan  1 00:34 glo.h
-r-xr-x---  1   root     2189 Jan  1 00:30 i8259.c
-rw-r--r--  1   root      759 Jan  1 01:15 i8259.s
-rw-r--r--  1   root     2920 Jan  1 00:30 kernel.crc
-rw-r--r--  1   root     1249 Jan  1 00:29 kernel.crcdif
-rw-r--r--  1   root      769 Jan  1 00:30 kernel.crcold
-r-xr-x---  1   root      643 Jan  1 00:30 kernel.h
-r--r-----  1   root    23181 Jan  1 00:30 keyboard.c
-rw-r--r--  1   root     8765 Jan  1 01:15 keyboard.s
-rw-r--r--  1   root    26496 Jan  1 00:08 klib88.s
-r--r-----  1   root    34656 Jan  1 00:29 klib88.x
-rw-r--r--  1   root     8623 Jan  1 00:36 main.c
-rw-r--r--  1   root     2755 Jan  1 03:09 main.s
-r--r-----  1   root     3188 Jan  1 02:49 makefile
-rw-rw-rw-  1   root     5598 Jan  1 00:36 memory.c
-rw-r--r--  1   root     2472 Jan  1 03:12 memory.s
-r-xr-x---  1   root     4371 Jan  1 00:30 misc.c
-rw-r--r--  1   root     1382 Jan  1 01:16 misc.s
-rw-r--r--  1   root    13834 Jan  1 00:08 mpx88.s
-r--r-----  1   root    22997 Jan  1 00:30 mpx88.x
-rw-rw-rw-  1   root      472 Jan  1 00:59 one
-r--r-----  1   root     2973 Jan  1 02:48 orig.makefile
-rw-r--r--  1   root     3375 Jan  1 00:08 pc_makefile
-rw-r--r--  1   root    12647 Jan  1 00:36 printer.c
-rw-r--r--  1   root     3109 Jan  1 03:13 printer.s
-rw-r--r--  1   root    18512 Jan  1 00:37 proc.c
-rw-r--r--  1   root     4266 Jan  1 00:37 proc.h
-rw-r--r--  1   root     4553 Jan  1 03:11 proc.s
-r--r-----  1   root     7777 Jan  1 00:30 protect.c
-r--r-----  1   root     6349 Jan  1 00:30 protect.h
-rw-r--r--  1   root     2094 Jan  1 02:47 protect.s
-r-xr-x---  1   root     3749 Jan  1 00:30 protect1.c
-rw-r--r--  1   root      655 Jan  1 02:48 protect1.s
-r-xr-x---  1   root     4897 Jan  1 00:30 proto.h
-rw-r--r--  1   root    27550 Jan  1 00:37 ps_wini.c
-rw-r--r--  1   root    11927 Jan  1 01:18 ps_wini.s
-r-xr-x---  1   root     6764 Jan  1 00:30 rs2.x
-rw-rw-rw-  1   root    20246 Jan  1 00:37 rs232.c
-rw-r--r--  1   root     3171 Jan  1 03:13 rs232.s
-r-xr-x---  1   root     3018 Jan  1 00:30 sconst.h
-rw-rw-rw-  1   root     8853 Jan  1 02:47 start.s
-r-xr-x---  1   root     8966 Jan  1 00:30 start.x
-rw-r--r--  1   root    32828 Jan  1 00:39 system.c
-rw-r--r--  1   root    10232 Jan  1 03:11 system.s
-rw-r--r--  1   root     3663 Jan  1 00:39 table.c
-rw-r--r--  1   root     1950 Jan  1 03:14 table.s
-rw-rw-rw-  1   root    35315 Jan  1 00:40 tty.c
-rw-rw-rw-  1   root     6653 Jan  1 00:40 tty.h
-rw-r--r--  1   root    12337 Jan  1 03:09 tty.s
-rw-rw-rw-  1   root     4708 Jan  1 00:09 ttymaps.h
-rw-r--r--  1   root     2669 Jan  1 00:40 type.h
-rw-r--r--  1   root    17795 Jan  1 00:32 wini.c
-rw-r--r--  1   root     8164 Jan  1 03:10 wini.s
-rw-r--r--  1   root    27766 Jan  1 00:41 xt_wini.c
-rw-r--r--  1   root    10345 Jan  1 01:21 xt_wini.s
 
-------------------------
This is what compiles.
 
 
cc -Di8088 -F -T. -S main.c
tty.c
floppy.c
wini.c
system.c
proc.c
clock.c
memory.c
console.c
(there are errors that follow that I left out).
 
thanks
chuck

-- 
- - - - - - - - -
Chuck Boyer, ITS, Seattle University
boyer@sumax.seattleu.edu
- - - - - - - - -