###################################################################### # RDOS operating system # Copyright (C) 2000, Leif Ekblad # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. The only exception to this rule # is for commercial usage in embedded systems. For information on # usage in commercial embedded systems, contact embedded@rdos.net # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # The author of this program may be contacted at leif@rdos.net # # MAKEFILE # Makefile for Borland MAKE. # ###################################################################### # DEFINE SYSTEM VERSION version = V1_0 prot_opt = /l/s/3/Twe link_opt = /l/s/3 # DEFINE GROUPS OF MODULES bur2bin_srcs = BUR2BIN.ASM bur2bin_objs = $(bur2bin_srcs:.ASM=.OBJ) bur2bin_exes = BUR2BIN.EXE sdram_srcs = SDRAM.ASM sdram_objs = $(sdram_srcs:.ASM=.OBJ) sdram_exes = SDRAM.EXE flash_srcs = FLASH.ASM flash_objs = $(flash_srcs:.ASM=.OBJ) flash_exes = FLASH.EXE cfg2rom_srcs = CFG2ROM.ASM cfg2rom_objs = $(cfg2rom_srcs:.ASM=.OBJ) cfg2rom_exes = CFG2ROM.EXE boot_srcs = BOOT.ASM boot_objs = $(boot_srcs:.ASM=.OBJ) boot_exes = BOOT.EXE srcs = $(bur2bin_srcs) $(sdram_srcs) $(flash_srcs) $(cfg2rom_srcs) \ $(boot_srcs) objs = $(srcs:.ASM=.OBJ) exes = $(bur2bin_exes) $(sdram_exes) $(flash_exes) $(cfg2rom_exes) \ $(boot_exes) rdvs = $(zfx86_rdvs) maps = $(exes:.EXE=.MAP) # DEFINE MODULES FOR CMS vaxset_modules = $(srcs) $(incs) $(fonts) $(bats) # DEFINE MODULES FOR SYSTEM VERSION kit_modules = $(maps) $(bats) $(bins) LOAD.EXE GRUBLOAD.EXE #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # DEFAULT RULES #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .asm.obj: tasm /M4 /Zi $<,$@; #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # TARGET #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ MAIN: FLASH.BIN SDRAM.BIN BURLOAD.BIN $(rdvs) BUR2BIN.EXE : $(bur2bin_objs) tlink @&&! $(link_opt) + $(bur2bin_objs) BUR2BIN BUR2BIN; ! SDRAM.EXE : $(sdram_objs) tlink @&&! $(link_opt) + $(sdram_objs) SDRAM SDRAM; ! FLASH.EXE : $(flash_objs) tlink @&&! $(link_opt) + $(flash_objs) FLASH FLASH; ! CFG2ROM.EXE : $(cfg2rom_objs) tlink @&&! $(link_opt) + $(cfg2rom_objs) CFG2ROM CFG2ROM; ! BOOT.EXE : $(boot_objs) tlink @&&! $(link_opt) + $(boot_objs) BOOT BOOT; ! FLASH.BIN SDRAM.BIN: BUR2BIN.EXE $(srcs) $(objs) $(exes) $(rdvs) bur2bin BURLOAD.BIN: BURLOAD.CFG BUR2BIN.EXE FLASH.BIN SDRAM.BIN $(srcs) $(objs) $(exes) $(rdvs) ..\..\kernel\tools\cfg2bin burload