TEXT_BASE is in board/sandpoint/config.mk so say so...
[u-boot.git] / board / MAI / bios_emulator / scitech / src / x86emu / makefile.cross
1 #############################################################################
2 #
3 #                                               Realmode X86 Emulator Library
4 #
5 #               Copyright (C) 1996-1999 SciTech Software, Inc.
6 #
7 #  ========================================================================
8 #
9 #  Permission to use, copy, modify, distribute, and sell this software and
10 #  its documentation for any purpose is hereby granted without fee,
11 #  provided that the above copyright notice appear in all copies and that
12 #  both that copyright notice and this permission notice appear in
13 #  supporting documentation, and that the name of the authors not be used
14 #  in advertising or publicity pertaining to distribution of the software
15 #  without specific, written prior permission.  The authors makes no
16 #  representations about the suitability of this software for any purpose.
17 #  It is provided "as is" without express or implied warranty.
18 #
19 #  THE AUTHORS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
20 #  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
21 #  EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
22 #  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
23 #  USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
24 #  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
25 #  PERFORMANCE OF THIS SOFTWARE.
26 #
27 #  ========================================================================
28 #
29 # Descripton:   Linux specific makefile for the x86emu library.
30 #
31 #############################################################################
32
33 CC = $(CROSS_COMPILE)gcc
34 AR = $(CROSS_COMPILE)ar
35
36 TARGETLIB = libx86emu.a
37 TARGETDEBUGLIB =libx86emud.a
38
39 OBJS=\
40 decode.o \
41 fpu.o \
42 ops.o \
43 ops2.o \
44 prim_ops.o \
45 sys.o
46
47 DEBUGOBJS=debug.d \
48           decode.d \
49           fpu.d \
50           ops.d \
51           ops2.d \
52           prim_ops.d \
53           sys.d
54
55 .SUFFIXES: .d
56
57 all: $(TARGETLIB) $(TARGETDEBUGLIB)
58
59 $(TARGETLIB): $(OBJS)
60         $(AR) rv $(TARGETLIB) $(OBJS)
61
62 $(TARGETDEBUGLIB): $(DEBUGOBJS)
63         $(AR) rv $(TARGETDEBUGLIB) $(DEBUGOBJS)
64
65 INCS   = -I. -Ix86emu -I../../include
66 CFLAGS = -D__DRIVER__ -DFORCE_POST -D_CEXPORT= -DNO_LONG_LONG -Dprintk=printf -fsigned-char  -fomit-frame-pointer -fPIC -ffixed-r14 -meabi
67 CDEBUGFLAGS = -DDEBUG
68
69 .c.o:
70         $(CC) -g -O2 -Wall -c $(CFLAGS) $(INCS) $*.c
71
72 .c.d:
73         $(CC) -g -O2 -Wall -c -o$*.d $(CFLAGS) $(CDEBUGFLAGS) $(INCS) $*.c
74
75 .cpp.o:
76         $(CC) -c $(CFLAGS) $(INCS) $*.cpp
77
78 clean:
79         rm -f *.a *.o *.d
80
81 validate:       validate.o libx86emu.a
82         $(CC) -o validate validate.o -lx86emu -L.