1 #############################################################################
3 # BIOS emulator and interface
4 # to Realmode X86 Emulator Library
6 # Copyright (C) 1996-1999 SciTech Software, Inc.
8 # ========================================================================
10 # Permission to use, copy, modify, distribute, and sell this software and
11 # its documentation for any purpose is hereby granted without fee,
12 # provided that the above copyright notice appear in all copies and that
13 # both that copyright notice and this permission notice appear in
14 # supporting documentation, and that the name of the authors not be used
15 # in advertising or publicity pertaining to distribution of the software
16 # without specific, written prior permission. The authors makes no
17 # representations about the suitability of this software for any purpose.
18 # It is provided "as is" without express or implied warranty.
20 # THE AUTHORS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
21 # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
22 # EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
23 # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
24 # USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
25 # OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
26 # PERFORMANCE OF THIS SOFTWARE.
28 # ========================================================================
30 # Descripton: Generic makefile for the x86emu library. Requires
31 # the SciTech Software makefile definitions package to be
32 # installed, which uses the DMAKE make program.
34 #############################################################################
36 .IMPORT .IGNORE: DEBUG
38 #----------------------------------------------------------------------------
39 # Define the lists of object files
40 #----------------------------------------------------------------------------
42 DLL_OBJS = dllstart$O _pm_imp$O
43 BIOS_OBJS = biosemu$O bios$O besys$O
44 X86_OBJS = sys$O decode$O ops$O ops2$O prim_ops$O fpu$O debug$O
45 CFLAGS += -DSCITECH -I$(SCITECH)\src\x86emu
49 CFLAGS += -I$(PRIVATE)\include\drvlib -I$(SCITECH)\include\drvlib -D__DRIVER__
50 ASFLAGS += -d__DRIVER__
58 OBJECTS = $(BIOS_OBJS) $(X86_OBJS)
59 LIBCLEAN = *.dll *.lib *.a
60 LIBFILE = $(LP)biosemu$L
64 #----------------------------------------------------------------------------
65 # Sample test programs
66 #----------------------------------------------------------------------------
68 all: $(LIBFILE) warmboot$E
70 warmboot$E: warmboot$O $(LIBFILE)
72 #----------------------------------------------------------------------------
73 # Target to build the Binary Portable DLL target
74 #----------------------------------------------------------------------------
76 biosemu.dll: $(DLL_OBJS) $(BIOS_OBJS) $(X86_OBJS)
78 #----------------------------------------------------------------------------
79 # Target to build all Intel binary drivers
80 #----------------------------------------------------------------------------
83 @build wc11-w32 biosemu.dll -u BUILD_DLL=1 NO_RUNTIME=1 OPT=1
84 @$(CP) biosemu.dll $(PRIVATE)\nucleus\graphics\biosemu.bpd
88 @build wc11-w32 biosemu.dll BUILD_DLL=1 NO_RUNTIME=1 OPT=1
89 @$(CP) biosemu.dll $(PRIVATE)\nucleus\graphics\biosemu.bpd
91 #----------------------------------------------------------------------------
92 # Define the list of object files to create dependency information for
93 #----------------------------------------------------------------------------
95 DEPEND_OBJ = warmboot$O $(BIOS_OBJS) $(X86_OBJS) $(DLL_OBJS)
96 DEPEND_SRC = $(SCITECH)/src/x86emu;$(PRIVATE)/src/common
97 .SOURCE: $(SCITECH)/src/x86emu $(PRIVATE)/src/common
99 .INCLUDE: "$(SCITECH)/makedefs/common.mk"