You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-libs/libx86/files/libx86-1.1-makefile.patch

29 lines
780 B

--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@
$(AR) cru libx86.a $(OBJECTS)
shared: $(OBJECTS)
- $(CC) $(CFLAGS) -o libx86.so.1 -shared -Wl,-soname,libx86.so.1 $(OBJECTS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o libx86.so.1 -shared -Wl,-soname,libx86.so.1 $(OBJECTS)
objclean:
$(MAKE) -C x86emu clean
@@ -31,8 +31,14 @@
clean: objclean
rm -f *.so.1 *.a
-install: libx86.so.1
+install-shared: libx86.so.1
install -D libx86.so.1 $(DESTDIR)$(LIBDIR)/libx86.so.1
- install -D libx86.a $(DESTDIR)$(LIBDIR)/libx86.a
ln -sf libx86.so.1 $(DESTDIR)$(LIBDIR)/libx86.so
+
+install-header:
install -p -m 0644 -D lrmi.h $(DESTDIR)/usr/include/libx86.h
+
+install-static:
+ install -D libx86.a $(DESTDIR)$(LIBDIR)/libx86.a
+
+install: install-shared install-static install-header