Import upstream u-boot 1.1.4
[u-boot.git] / board / MAI / bios_emulator / scitech / src / biosemu / makefile
1 #############################################################################
2 #
3 #                        BIOS emulator and interface
4 #                      to Realmode X86 Emulator Library
5 #
6 #               Copyright (C) 1996-1999 SciTech Software, Inc.
7 #
8 #  ========================================================================
9 #
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.
19 #
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.
27 #
28 #  ========================================================================
29 #
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.
33 #
34 #############################################################################
35
36 .IMPORT .IGNORE: DEBUG
37
38 #----------------------------------------------------------------------------
39 # Define the lists of object files
40 #----------------------------------------------------------------------------
41
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
46
47 .IF $(BUILD_DLL)
48
49 CFLAGS          += -I$(PRIVATE)\include\drvlib -I$(SCITECH)\include\drvlib -D__DRIVER__
50 ASFLAGS         += -d__DRIVER__
51 EXELIBS         = drvlib$L
52
53 .ELSE
54
55 .IF $(DEBUG)
56 CFLAGS          += -DDEBUG
57 .ENDIF
58 OBJECTS         = $(BIOS_OBJS) $(X86_OBJS)
59 LIBCLEAN        = *.dll *.lib *.a
60 LIBFILE         = $(LP)biosemu$L
61
62 .ENDIF
63
64 #----------------------------------------------------------------------------
65 # Sample test programs
66 #----------------------------------------------------------------------------
67
68 all: $(LIBFILE) warmboot$E
69
70 warmboot$E: warmboot$O $(LIBFILE)
71
72 #----------------------------------------------------------------------------
73 # Target to build the Binary Portable DLL target
74 #----------------------------------------------------------------------------
75
76 biosemu.dll: $(DLL_OBJS) $(BIOS_OBJS) $(X86_OBJS)
77
78 #----------------------------------------------------------------------------
79 # Target to build all Intel binary drivers
80 #----------------------------------------------------------------------------
81
82 .PHONY mkdrv:
83     @build wc11-w32 biosemu.dll -u BUILD_DLL=1 NO_RUNTIME=1 OPT=1
84     @$(CP) biosemu.dll $(PRIVATE)\nucleus\graphics\biosemu.bpd
85     @dmake cleanexe
86
87 .PHONY db:
88     @build wc11-w32 biosemu.dll BUILD_DLL=1 NO_RUNTIME=1 OPT=1
89     @$(CP) biosemu.dll $(PRIVATE)\nucleus\graphics\biosemu.bpd
90
91 #----------------------------------------------------------------------------
92 # Define the list of object files to create dependency information for
93 #----------------------------------------------------------------------------
94
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
98
99 .INCLUDE: "$(SCITECH)/makedefs/common.mk"