View | Details | Raw Unified | Return to bug 23209
Collapse All | Expand All

(-)a/Makefile (-3 / +12 lines)
Lines 1-6 Link Here
1
OBJECTS = x86-common.o
1
OBJECTS = x86-common.o
2
CFLAGS ?= -O2 -Wall -DDEBUG -g
2
CFLAGS ?= -O2 -Wall -DDEBUG -g
3
LIBDIR ?= /usr/lib
3
LIBDIR ?= /usr/lib
4
INCLUDEDIR ?= /usr/include
4
5
5
ifeq ($(BACKEND),x86emu)
6
ifeq ($(BACKEND),x86emu)
6
	OBJECTS += thunk.o x86emu/decode.o x86emu/debug.o x86emu/fpu.o \
7
	OBJECTS += thunk.o x86emu/decode.o x86emu/debug.o x86emu/fpu.o \
Lines 29-38 objclean: Link Here
29
	rm -f *.o *~
30
	rm -f *.o *~
30
31
31
clean: objclean
32
clean: objclean
32
	rm -f *.so.1 *.a
33
	rm -f *.so.1 *.a x86.pc
33
34
34
install: libx86.so.1
35
x86.pc:
36
	sed -e's,@prefix@,/usr,' x86.pc.in > x86.pc
37
	sed -e's,@exec_prefix@,/usr,' -i x86.pc
38
	sed -e's,@libdir@,${LIBDIR},' -i x86.pc
39
	sed -e's,@includedir@,${INCLUDEDIR},' -i x86.pc
40
	sed -e's,@PACKAGE_VERSION@,1.1,' -i x86.pc
41
42
install: libx86.so.1 x86.pc
35
	install -D libx86.so.1 $(DESTDIR)$(LIBDIR)/libx86.so.1
43
	install -D libx86.so.1 $(DESTDIR)$(LIBDIR)/libx86.so.1
36
	install -D libx86.a $(DESTDIR)$(LIBDIR)/libx86.a
44
	install -D libx86.a $(DESTDIR)$(LIBDIR)/libx86.a
45
	install -D x86.pc $(DESTDIR)$(LIBDIR)/pkgconfig/x86.pc
37
	ln -sf libx86.so.1 $(DESTDIR)$(LIBDIR)/libx86.so
46
	ln -sf libx86.so.1 $(DESTDIR)$(LIBDIR)/libx86.so
38
	install -p -m 0644 -D lrmi.h $(DESTDIR)/usr/include/libx86.h
47
	install -p -m 0644 -D lrmi.h $(DESTDIR)$(INCLUDEDIR)/libx86.h
(-)a/x86.pc.in (-1 / +10 lines)
Line 0 Link Here
0
- 
1
prefix=@prefix@
2
exec_prefix=@exec_prefix@
3
libdir=@libdir@
4
includedir=@includedir@
5
6
Name: x86
7
Description: Library providing x86 emulator access
8
Version: @PACKAGE_VERSION@
9
Cflags: -I${includedir}
10
Libs: -L${libdir} -lx86

Return to bug 23209