source: trunk/minix/drivers/memory/ramdisk/Makefile@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

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