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 \ 10 -Wl,--build-id=sha1 -Wl,-z,max-page-size=4096 11LDFLAGS64 = -nostdlib -shared -Wl,-T,$(SUBDIR)/vdso-64.ld \ 12 -Wl,-h,linux-vdso64.so.1 -Wl,--hash-style=both \ 13 -Wl,--build-id=sha1 -Wl,-z,max-page-size=4096 14 15$(SUBDIR)/vdso-32.so: vdso.S vdso-32.ld vdso-asmoffset.h 16 $(CC) -o $@ $(LDFLAGS32) -m32 $< 17 18$(SUBDIR)/vdso-64.so: vdso.S vdso-64.ld vdso-asmoffset.h 19 $(CC) -o $@ $(LDFLAGS64) -mbig-endian $< 20 21$(SUBDIR)/vdso-64le.so: vdso.S vdso-64.ld vdso-asmoffset.h 22 $(CC) -o $@ $(LDFLAGS64) -mlittle-endian $< 23