1include $(BUILD_DIR)/tests/tcg/ppc64-linux-user/config-target.mak 2 3SUBDIR = $(SRC_PATH)/linux-user/ppc 4VPATH += $(SUBDIR) 5 6all: $(SUBDIR)/vdso-32.so $(SUBDIR)/vdso-64.so $(SUBDIR)/vdso-64le.so 7 8LDFLAGS32 = -nostdlib -shared -Wl,-T,$(SUBDIR)/vdso-32.ld \ 9 -Wl,-h,linux-vdso32.so.1 -Wl,--hash-style=both -Wl,--build-id=sha1 10LDFLAGS64 = -nostdlib -shared -Wl,-T,$(SUBDIR)/vdso-64.ld \ 11 -Wl,-h,linux-vdso64.so.1 -Wl,--hash-style=both -Wl,--build-id=sha1 12 13$(SUBDIR)/vdso-32.so: vdso.S vdso-32.ld vdso-asmoffset.h 14 $(CC) -o $@ $(LDFLAGS32) -m32 $< 15 16$(SUBDIR)/vdso-64.so: vdso.S vdso-64.ld vdso-asmoffset.h 17 $(CC) -o $@ $(LDFLAGS64) -mbig-endian $< 18 19$(SUBDIR)/vdso-64le.so: vdso.S vdso-64.ld vdso-asmoffset.h 20 $(CC) -o $@ $(LDFLAGS64) -mlittle-endian $< 21