| 1 | #
|
|---|
| 2 | # /emx/src/dos/makefile
|
|---|
| 3 | #
|
|---|
| 4 | # Copyright (c) 1991-1999 by Eberhard Mattes
|
|---|
| 5 | #
|
|---|
| 6 | # This file is part of emx.
|
|---|
| 7 | #
|
|---|
| 8 | # emx is free software; you can redistribute it and/or modify it
|
|---|
| 9 | # under the terms of the GNU General Public License as published by
|
|---|
| 10 | # the Free Software Foundation; either version 2, or (at your option)
|
|---|
| 11 | # any later version.
|
|---|
| 12 | #
|
|---|
| 13 | # emx is distributed in the hope that it will be useful,
|
|---|
| 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 16 | # GNU General Public License for more details.
|
|---|
| 17 | #
|
|---|
| 18 | # You should have received a copy of the GNU General Public License
|
|---|
| 19 | # along with emx; see the file COPYING. If not, write to
|
|---|
| 20 | # the Free Software Foundation, 59 Temple Place - Suite 330,
|
|---|
| 21 | # Boston, MA 02111-1307, USA.
|
|---|
| 22 | #
|
|---|
| 23 | # See emx.asm for a special exception.
|
|---|
| 24 | #
|
|---|
| 25 |
|
|---|
| 26 | .SUFFIXES: .obj .asm
|
|---|
| 27 |
|
|---|
| 28 | MLOPT=
|
|---|
| 29 | LINKOPT=
|
|---|
| 30 | BIN=.\ #
|
|---|
| 31 |
|
|---|
| 32 | ML=ml -c -Cp -W3 -WX -VM -nologo $(MLOPT)
|
|---|
| 33 |
|
|---|
| 34 | .asm.obj:
|
|---|
| 35 | $(ML) $<
|
|---|
| 36 |
|
|---|
| 37 | default: all
|
|---|
| 38 | all: emx emxd emxl
|
|---|
| 39 | emx: $(BIN)emx.exe
|
|---|
| 40 | emxd: $(BIN)emxd.exe
|
|---|
| 41 | emxl: $(BIN)emxl.exe
|
|---|
| 42 |
|
|---|
| 43 | debug:
|
|---|
| 44 | @$(MAKE) $(MAKEFLAGS) /NOLOGO MLOPT=-Zi LINKOPT=/CO
|
|---|
| 45 |
|
|---|
| 46 | a20.obj: a20.asm a20.inc emx.inc xms.inc vcpi.inc \
|
|---|
| 47 | options.inc
|
|---|
| 48 |
|
|---|
| 49 | core.obj: core.asm emx.inc oprint.inc headers.inc \
|
|---|
| 50 | core.inc pmint.inc signal.inc process.inc
|
|---|
| 51 |
|
|---|
| 52 | debug.obj: debug.asm emx.inc except.inc oprint.inc utils.inc \
|
|---|
| 53 | pmio.inc disasm.inc segments.inc symbols.inc \
|
|---|
| 54 | process.inc paging.inc tables.inc pmint.inc \
|
|---|
| 55 | signal.inc debug.inc swapper.inc fileio.inc
|
|---|
| 56 |
|
|---|
| 57 | disasm.obj: disasm.asm emx.inc symbols.inc
|
|---|
| 58 |
|
|---|
| 59 | dpmi.obj: dpmi.asm emx.inc rprint.inc misc.inc vcpi.inc
|
|---|
| 60 |
|
|---|
| 61 | emx.obj: emx.asm emx.inc oprint.inc tables.inc \
|
|---|
| 62 | paging.inc a20.inc segments.inc pmio.inc \
|
|---|
| 63 | memory.inc process.inc vprint.inc swapper.inc \
|
|---|
| 64 | except.inc rmint.inc debug.inc options.inc \
|
|---|
| 65 | version.inc vcpi.inc signal.inc pmint.inc \
|
|---|
| 66 | loader.inc xms.inc rprint.inc headers.inc \
|
|---|
| 67 | termio.inc fileio.inc utils.inc
|
|---|
| 68 |
|
|---|
| 69 | emxl.obj: emxl.asm emx.inc headers.inc version.inc
|
|---|
| 70 |
|
|---|
| 71 | errors.obj: errors.asm emx.inc errors.inc pmint.inc signal.inc \
|
|---|
| 72 | process.inc
|
|---|
| 73 |
|
|---|
| 74 | except.obj: except.asm emx.inc except.inc vprint.inc \
|
|---|
| 75 | swapper.inc debug.inc oprint.inc pmio.inc \
|
|---|
| 76 | pmint.inc tables.inc process.inc signal.inc \
|
|---|
| 77 | misc.inc core.inc
|
|---|
| 78 |
|
|---|
| 79 | extapi.obj: extapi.asm emx.inc pmint.inc
|
|---|
| 80 |
|
|---|
| 81 | fileio.obj: fileio.asm emx.inc signal.inc process.inc swapper.inc \
|
|---|
| 82 | errors.inc options.inc oprint.inc pmint.inc utils.inc
|
|---|
| 83 |
|
|---|
| 84 | loader.obj: loader.asm emx.inc tables.inc paging.inc \
|
|---|
| 85 | misc.inc signal.inc segments.inc pmio.inc \
|
|---|
| 86 | memory.inc process.inc symbols.inc debug.inc \
|
|---|
| 87 | headers.inc pmint.inc options.inc errors.inc \
|
|---|
| 88 | version.inc
|
|---|
| 89 |
|
|---|
| 90 | memory.obj: memory.asm emx.inc swapper.inc vcpi.inc \
|
|---|
| 91 | xms.inc memory.inc rprint.inc rmint.inc \
|
|---|
| 92 | paging.inc segments.inc misc.inc oprint.inc options.inc
|
|---|
| 93 |
|
|---|
| 94 | ndebug.obj: ndebug.asm emx.inc debug.inc pmint.inc
|
|---|
| 95 |
|
|---|
| 96 | oprint.obj: oprint.asm emx.inc signal.inc process.inc
|
|---|
| 97 |
|
|---|
| 98 | options.obj: options.asm emx.inc memory.inc a20.inc except.inc \
|
|---|
| 99 | pmio.inc debug.inc process.inc rprint.inc xms.inc \
|
|---|
| 100 | signal.inc misc.inc version.inc loader.inc
|
|---|
| 101 |
|
|---|
| 102 | paging.obj: paging.asm emx.inc oprint.inc memory.inc \
|
|---|
| 103 | vcpi.inc tables.inc segments.inc paging.inc \
|
|---|
| 104 | misc.inc swapper.inc
|
|---|
| 105 |
|
|---|
| 106 | pmint.obj: pmint.asm emx.inc vprint.inc tables.inc extapi.inc \
|
|---|
| 107 | vcpi.inc process.inc oprint.inc paging.inc \
|
|---|
| 108 | syscall.inc pmint.inc rprint.inc a20.inc profil.inc \
|
|---|
| 109 | debug.inc segments.inc misc.inc signal.inc \
|
|---|
| 110 | rmint.inc core.inc termio.inc options.inc utils.inc \
|
|---|
| 111 | stat.inc except.inc fileio.inc errors.inc
|
|---|
| 112 |
|
|---|
| 113 | pmio.obj: pmio.asm emx.inc signal.inc process.inc
|
|---|
| 114 |
|
|---|
| 115 | process.obj: process.asm emx.inc loader.inc process.inc errors.inc \
|
|---|
| 116 | signal.inc tables.inc segments.inc pmint.inc profil.inc \
|
|---|
| 117 | pmio.inc paging.inc fileio.inc misc.inc utils.inc
|
|---|
| 118 |
|
|---|
| 119 | profil.obj: profil.asm emx.inc process.inc signal.inc profil.inc \
|
|---|
| 120 | pmint.inc errors.inc
|
|---|
| 121 |
|
|---|
| 122 | ptrace.obj: ptrace.asm emx.inc pmint.inc signal.inc process.inc \
|
|---|
| 123 | debug.inc headers.inc errors.inc
|
|---|
| 124 |
|
|---|
| 125 | rmint.obj: rmint.asm emx.inc vcpi.inc rmint.inc \
|
|---|
| 126 | tables.inc pmint.inc except.inc rprint.inc \
|
|---|
| 127 | misc.inc signal.inc process.inc options.inc
|
|---|
| 128 |
|
|---|
| 129 | rprint.obj: rprint.asm emx.inc rprint.inc
|
|---|
| 130 |
|
|---|
| 131 | segments.obj: segments.asm emx.inc tables.inc paging.inc \
|
|---|
| 132 | segments.inc misc.inc signal.inc process.inc
|
|---|
| 133 |
|
|---|
| 134 | signal.obj: signal.asm emx.inc pmint.inc rmint.inc misc.inc errors.inc \
|
|---|
| 135 | signal.inc process.inc except.inc oprint.inc core.inc
|
|---|
| 136 |
|
|---|
| 137 | swapper.obj: swapper.asm emx.inc pmio.inc except.inc \
|
|---|
| 138 | oprint.inc segments.inc paging.inc memory.inc \
|
|---|
| 139 | pmint.inc process.inc tables.inc signal.inc \
|
|---|
| 140 | debug.inc
|
|---|
| 141 |
|
|---|
| 142 | symbols.obj: symbols.asm symbols.inc emx.inc process.inc \
|
|---|
| 143 | signal.inc
|
|---|
| 144 |
|
|---|
| 145 | syscall.obj: syscall.asm emx.inc process.inc paging.inc vprint.inc \
|
|---|
| 146 | segments.inc pmint.inc tables.inc loader.inc fileio.inc \
|
|---|
| 147 | except.inc swapper.inc signal.inc errors.inc vcpi.inc \
|
|---|
| 148 | xms.inc memory.inc misc.inc core.inc timeb.inc version.inc \
|
|---|
| 149 | termio.inc stat.inc ulimit.inc profil.inc utils.inc
|
|---|
| 150 |
|
|---|
| 151 | tables.obj: tables.asm emx.inc tables.inc process.inc \
|
|---|
| 152 | pmint.inc misc.inc headers.inc signal.inc \
|
|---|
| 153 | except.inc
|
|---|
| 154 |
|
|---|
| 155 | termio.obj: termio.asm emx.inc signal.inc process.inc \
|
|---|
| 156 | termio.inc errors.inc
|
|---|
| 157 |
|
|---|
| 158 | utils.obj: utils.asm emx.inc
|
|---|
| 159 |
|
|---|
| 160 | vcpi.obj: vcpi.asm emx.inc tables.inc pmint.inc \
|
|---|
| 161 | paging.inc misc.inc rprint.inc memory.inc \
|
|---|
| 162 | segments.inc oprint.inc
|
|---|
| 163 |
|
|---|
| 164 | vprint.obj: vprint.asm emx.inc tables.inc vprint.inc
|
|---|
| 165 |
|
|---|
| 166 | xms.obj: xms.asm xms.inc emx.inc memory.inc \
|
|---|
| 167 | rprint.inc vcpi.inc options.inc
|
|---|
| 168 |
|
|---|
| 169 | EMXOBJ1 = emx.obj tables.obj loader.obj oprint.obj utils.obj
|
|---|
| 170 | EMXOBJ2 = segments.obj paging.obj pmio.obj memory.obj ptrace.obj
|
|---|
| 171 | EMXOBJ3 = profil.obj process.obj vprint.obj swapper.obj except.obj
|
|---|
| 172 | EMXOBJ4 = extapi.obj rmint.obj vcpi.obj syscall.obj signal.obj
|
|---|
| 173 | EMXOBJ5 = fileio.obj pmint.obj rprint.obj dpmi.obj symbols.obj
|
|---|
| 174 | EMXOBJ6 = errors.obj xms.obj a20.obj core.obj termio.obj options.obj
|
|---|
| 175 | EMXDEP = $(EMXOBJ1) $(EMXOBJ2) $(EMXOBJ3) $(EMXOBJ4) $(EMXOBJ5) \
|
|---|
| 176 | $(EMXOBJ6) emx.lnk
|
|---|
| 177 |
|
|---|
| 178 | emx.lnk: makefile
|
|---|
| 179 | @echo $(EMXOBJ1) + >emx.lnk
|
|---|
| 180 | @echo $(EMXOBJ2) + >>emx.lnk
|
|---|
| 181 | @echo $(EMXOBJ3) + >>emx.lnk
|
|---|
| 182 | @echo $(EMXOBJ4) + >>emx.lnk
|
|---|
| 183 | @echo $(EMXOBJ5) + >>emx.lnk
|
|---|
| 184 | @echo $(EMXOBJ6) + >>emx.lnk
|
|---|
| 185 |
|
|---|
| 186 | $(BIN)emx.exe: $(EMXDEP) ndebug.obj
|
|---|
| 187 | link @emx.lnk ndebug, $(BIN)emx, emx /cp:1 /map $(LINKOPT);
|
|---|
| 188 |
|
|---|
| 189 | $(BIN)emxd.exe: $(EMXDEP) debug.obj disasm.obj
|
|---|
| 190 | link @emx.lnk debug disasm, $(BIN)emxd, emxd /cp:1 /map $(LINKOPT);
|
|---|
| 191 |
|
|---|
| 192 | $(BIN)emxl.exe: emxl.obj
|
|---|
| 193 | link emxl, $(BIN)emxl, emxl /cp:1 /map $(LINKOPT);
|
|---|
| 194 |
|
|---|
| 195 | clean:
|
|---|
| 196 | -del *.obj
|
|---|
| 197 | -del *.map
|
|---|
| 198 | -del emx.lnk
|
|---|
| 199 |
|
|---|
| 200 | realclean:
|
|---|
| 201 | -del $(BIN)emx.exe
|
|---|
| 202 | -del $(BIN)emxd.exe
|
|---|
| 203 | -del $(BIN)emxl.exe
|
|---|
| 204 |
|
|---|
| 205 | # End of /emx/src/dos/makefile
|
|---|