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