]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/hwinfo/src/x86emu/Makefile
Kleiner netter neuer Versuch.
[people/pmueller/ipfire-2.x.git] / src / hwinfo / src / x86emu / Makefile
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 TARGETLIB = ../libhd.a
34 TARGETDEBUGLIB = ../libx86emud.a
35
36 OBJS=\
37 debug.o \
38 decode.o \
39 fpu.o \
40 ops.o \
41 ops2.o \
42 prim_ops.o \
43 sys.o
44
45 DEBUGOBJS=debug.d \
46 decode.d \
47 fpu.d \
48 ops.d \
49 ops2.d \
50 prim_ops.d \
51 sys.d
52
53 .SUFFIXES: .d
54
55 all: $(TARGETLIB)
56
57 $(TARGETLIB): $(OBJS)
58 # prefix objects with x86emu_
59 @for i in $? ; do cp -p $$i x86emu_$$i ; ar rv $@ x86emu_$$i || exit ; rm -f x86emu_$$i ; done
60
61 $(TARGETDEBUGLIB): $(DEBUGOBJS)
62 ar rv $(TARGETDEBUGLIB) $(DEBUGOBJS)
63
64 INCS = -I. -Ix86emu -Iinclude
65 CFLAGS += -D__DRIVER__ -DFORCE_POST -D_CEXPORT= -DNO_LONG_LONG
66 CDEBUGFLAGS = -DDEBUG
67
68 .c.o:
69 gcc -c $(CFLAGS) $(INCS) $*.c
70
71 .c.d:
72 gcc -c -o$*.d $(CFLAGS) $(CDEBUGFLAGS) $(INCS) $*.c
73
74 .cpp.o:
75 gcc -c $(CFLAGS) $(INCS) $*.cpp
76
77 install: all
78
79 distclean: clean
80 @rm -f *~
81
82 clean:
83 @rm -f *.o *.d
84
85 validate: validate.o ../libx86emu.a
86 gcc -o validate validate.o -lx86emu -L..