diff options
Diffstat (limited to 't/recipes/checks/libraries/static/binaries-static-lib/build-spec/orig/Makefile')
-rw-r--r-- | t/recipes/checks/libraries/static/binaries-static-lib/build-spec/orig/Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/t/recipes/checks/libraries/static/binaries-static-lib/build-spec/orig/Makefile b/t/recipes/checks/libraries/static/binaries-static-lib/build-spec/orig/Makefile new file mode 100644 index 0000000..c6d2401 --- /dev/null +++ b/t/recipes/checks/libraries/static/binaries-static-lib/build-spec/orig/Makefile @@ -0,0 +1,31 @@ +CC=gcc +CFLAGS+= -g +LIBFILES:= libfoo.a libbar.a + +all: $(LIBFILES) + +libfoo.a: code.o other.o + ar rcs -o $@ $^ + +pstripped.o: other.o + cp other.o pstripped.o + strip --strip-unneeded pstripped.o + +fstripped.o: other.o + cp other.o fstripped.o + strip --strip-unneeded --remove-section=.comment \ + --remove-section=.note fstripped.o + +libbar.a: fstripped.o pstripped.o + ar rcs -o $@ $^ + +clean: + rm -f *.a *.o + +install: all + install -m 0755 -d $(DESTDIR)/usr/lib + install -m 0755 -d $(DESTDIR)/usr/include + install -m 0644 *.a $(DESTDIR)/usr/lib + install -m 0644 code.h $(DESTDIR)/usr/include + +.PHONY: install clean |