summaryrefslogtreecommitdiff
path: root/v4.0/src/CMD/FDISK/MAKEFILE
blob: 2d4117e4a37130986a9ebd681da9be644811e3f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#************************** makefile for cmd\... ***************************

msg	=..\..\messages
dos	=..\..\dos
inc	=..\..\inc
hinc	=..\..\h

#
#######################	dependencies begin here. #########################
#

map	=..\..\mapper
here	=..\cmd\fdisk

all: fdisk.exe


# Handle the FDISK 'C' source compilations first

fdiskm.c  : $(msg)\$(COUNTRY).msg fdisk.msg
        menubld fdisk.msg  $(msg)\$(COUNTRY).MSG

fdisk5.cl1 : fdisk5.skl $(msg)\$(COUNTRY).msg

fdisk.ctl : fdisk.skl $(msg)\$(COUNTRY).msg

main.obj : main.c \
           fdisk.h subtype.h extern.h fdiskmsg.h msgret.h doscall.h 

fdisk.obj : fdisk.c \
            fdisk.h subtype.h extern.h fdiskmsg.h doscall.h msgret.h

mainmenu.obj : mainmenu.c fdisk.h subtype.h extern.h fdiskmsg.h 

display.obj : display.c \
              fdisk.h subtype.h extern.h fdiskmsg.h doscall.h

d_menus.obj : d_menus.c fdisk.h subtype.h extern.h fdiskmsg.h 

c_menus.obj : c_menus.c fdisk.h subtype.h extern.h fdiskmsg.h 

input.obj : input.c fdisk.h subtype.h extern.h fdiskmsg.h doscall.h

tdisplay.obj : tdisplay.c fdisk.h subtype.h extern.h fdiskmsg.h 

vdisplay.obj : vdisplay.c fdisk.h subtype.h extern.h fdiskmsg.h 

space.obj : space.c fdisk.h subtype.h extern.h

partinfo.obj : partinfo.c fdisk.h subtype.h extern.h 

makepart.obj : makepart.c fdisk.h subtype.h extern.h 

video.obj : video.c fdisk.h extern.h subtype.h fdiskmsg.h doscall.h

int13.obj : int13.c fdisk.h subtype.h extern.h fdiskmsg.h

diskout.obj : diskout.c fdisk.h subtype.h extern.h

fdparse.obj : fdparse.c fdisk.h subtype.h extern.h parse.h msgret.h 

convert.obj : convert.c fdisk.h subtype.h extern.h 

global.obj : global.c fdisk.h makefile 

fdiskm.obj : fdiskm.c

messages.obj : messages.c msgret.h extern.h subtype.h fdisk.h


# Handle the FDISK MASM source


fdboot.obj : fdboot.asm fdisk5.cl1

fdboot.inc: fdboot.obj
        link fdboot;
        exe2bin fdboot
        del fdboot.exe
        dbof fdboot.bin fdboot.inc 600 200

_parse.obj : _parse.asm $(inc)\psdata.inc $(inc)\parse.asm \
             makefile

_msgret.obj : _msgret.asm $(inc)\psdata.inc \
             fdisk.ctl fdisk.cla fdisk.clb fdisk.cl1 fdisk.cl2 \
             makefile

bootrec.obj : bootrec.asm fdboot.inc \
              makefile

reboot.obj : reboot.asm \
             makefile

$(map)\mapper.lib:
	cd $(map)
	nmake
	cd $(here)

# Do the link of FDISK

fdisk.exe : fdisk.obj reboot.obj bootrec.obj fdboot.obj \
            display.obj input.obj tdisplay.obj vdisplay.obj \
            space.obj partinfo.obj video.obj makepart.obj \
            int13.obj diskout.obj messages.obj fdparse.obj \
            convert.obj global.obj fdiskm.obj main.obj \
            c_menus.obj d_menus.obj mainmenu.obj _msgret.obj  \
	    $(map)\mapper.lib makefile fdisk.lnk fdisk.ctl _parse.obj \
            $(inc)\comsubs.lib
	cd $(inc)
	nmake
	cd $(here)
        link @fdisk.lnk