1 | # Makefile for ramdisk image
|
---|
2 |
|
---|
3 | PROGRAMS=at_wini bios_wini cdprobe dev2name floppy loadramdisk newroot \
|
---|
4 | pci sh service sysenv
|
---|
5 |
|
---|
6 | MAKEDEV=/usr/bin/MAKEDEV
|
---|
7 |
|
---|
8 | all: image.c image.s
|
---|
9 |
|
---|
10 | clean:
|
---|
11 | rm -rf $(PROGRAMS) bintoc image image.c t proto.gen
|
---|
12 |
|
---|
13 | image.c: bintoc image
|
---|
14 | ./bintoc -o $@ image
|
---|
15 |
|
---|
16 | image.s: image.c
|
---|
17 | sed < image.c > $@ 's/^/.data1 /;s/,$$//' || { rm -f $@; false; }
|
---|
18 |
|
---|
19 | # Note for cross compilation: this executable has to be compiled for the
|
---|
20 | # host system
|
---|
21 | bintoc: bintoc.c
|
---|
22 | $(CC) -o $@ bintoc.c
|
---|
23 |
|
---|
24 | image: proto.gen mtab rc $(PROGRAMS)
|
---|
25 | mkfs -B 2048 image proto.gen || { rm -f image; false; }
|
---|
26 |
|
---|
27 | at_wini: ../../at_wini/at_wini
|
---|
28 | install -s ../../$@/$@ $@
|
---|
29 |
|
---|
30 | ../../at_wini/at_wini:
|
---|
31 | cd ../../at_wini && make
|
---|
32 |
|
---|
33 | bios_wini: ../../bios_wini/bios_wini
|
---|
34 | install -s ../../$@/$@ $@
|
---|
35 |
|
---|
36 | ../../bios_wini/bios_wini:
|
---|
37 | cd ../../bios_wini && make
|
---|
38 |
|
---|
39 | floppy: ../../floppy/floppy
|
---|
40 | install -s ../../$@/$@ $@
|
---|
41 |
|
---|
42 | ../../floppy/floppy:
|
---|
43 | cd ../../floppy && make
|
---|
44 |
|
---|
45 | pci: ../../pci/pci
|
---|
46 | install -s ../../$@/$@ $@
|
---|
47 |
|
---|
48 | ../../pci/pci:
|
---|
49 | cd ../../pci && make
|
---|
50 |
|
---|
51 | cdprobe: ../../../commands/simple/cdprobe
|
---|
52 | install -s ../../../commands/simple/$@ $@
|
---|
53 |
|
---|
54 | ../../../commands/simple/cdprobe:
|
---|
55 | cd ../../../commands/simple && make cdprobe
|
---|
56 |
|
---|
57 | dev2name: ../../../commands/simple/dev2name
|
---|
58 | install -s ../../../commands/simple/$@ $@
|
---|
59 |
|
---|
60 | ../../../commands/simple/dev2name:
|
---|
61 | cd ../../../commands/simple && make dev2name
|
---|
62 |
|
---|
63 | loadramdisk: ../../../commands/simple/loadramdisk
|
---|
64 | install -s ../../../commands/simple/$@ $@
|
---|
65 |
|
---|
66 | ../../../commands/simple/loadramdisk:
|
---|
67 | cd ../../../commands/simple && make loadramdisk
|
---|
68 |
|
---|
69 | newroot: ../../../commands/simple/newroot
|
---|
70 | install -s ../../../commands/simple/$@ $@
|
---|
71 |
|
---|
72 | ../../../commands/simple/newroot:
|
---|
73 | cd ../../../commands/simple && make newroot
|
---|
74 |
|
---|
75 | sysenv: ../../../commands/simple/sysenv
|
---|
76 | install -s ../../../commands/simple/$@ $@
|
---|
77 |
|
---|
78 | ../../../commands/simple/sysenv:
|
---|
79 | cd ../../../commands/simple && make sysenv
|
---|
80 |
|
---|
81 | sh: ../../../commands/ash/sh
|
---|
82 | install -s ../../../commands/ash/$@ $@
|
---|
83 |
|
---|
84 | ../../../commands/ash/sh:
|
---|
85 | cd ../../../commands/ash && make sh
|
---|
86 |
|
---|
87 | service: ../../../servers/rs/service
|
---|
88 | install -s ../../../servers/rs/$@ $@
|
---|
89 |
|
---|
90 | ../../../servers/rs/service:
|
---|
91 | cd ../../../servers/rs && make service
|
---|
92 |
|
---|
93 | depend:
|
---|
94 | /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
---|
95 |
|
---|
96 | proto.gen: $(MAKEDEV) proto.sh proto
|
---|
97 | sh -e proto.sh >proto.gen
|
---|
98 |
|
---|
99 | # Include generated dependencies.
|
---|
100 | include .depend
|
---|
101 |
|
---|