Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
| 1 |
OBJECTS = x86-common.o |
| 2 |
CFLAGS ?= -O2 -Wall -DDEBUG -g |
| 3 |
LIBDIR ?= /usr/lib |
| 4 |
|
| 5 |
ifeq ($(BACKEND),x86emu) |
| 6 |
OBJECTS += thunk.o x86emu/decode.o x86emu/debug.o x86emu/fpu.o \ |
| 7 |
x86emu/ops.o x86emu/ops2.o x86emu/prim_ops.o x86emu/sys.o |
| 8 |
else |
| 9 |
OBJECTS += lrmi.o |
| 10 |
endif |
| 11 |
|
| 12 |
ifeq ($(LIBRARY),shared) |
| 13 |
CFLAGS += -fPIC |
| 14 |
endif |
| 15 |
|
| 16 |
default: |
| 17 |
$(MAKE) LIBRARY=static static |
| 18 |
$(MAKE) objclean |
| 19 |
$(MAKE) LIBRARY=shared shared |
| 20 |
|
| 21 |
static: $(OBJECTS) |
| 22 |
$(AR) cru libx86.a $(OBJECTS) |
| 23 |
|
| 24 |
shared: $(OBJECTS) |
| 25 |
$(CC) $(CFLAGS) -o libx86.so.1 -shared -Wl,-soname,libx86.so.1 $(OBJECTS) |
| 26 |
|
| 27 |
objclean: |
| 28 |
$(MAKE) -C x86emu clean |
| 29 |
rm -f *.o *~ |
| 30 |
|
| 31 |
clean: objclean |
| 32 |
rm -f *.so.1 *.a |
| 33 |
|
| 34 |
install: libx86.so.1 |
| 35 |
install -D libx86.so.1 $(DESTDIR)$(LIBDIR)/libx86.so.1 |
| 36 |
install -D libx86.a $(DESTDIR)$(LIBDIR)/libx86.a |
| 37 |
ln -sf libx86.so.1 $(DESTDIR)$(LIBDIR)/libx86.so |
| 38 |
install -p -m 0644 -D lrmi.h $(DESTDIR)/usr/include/libx86.h |