Lines 35-47
Link Here
|
35 |
args.o: CFLAGS_FOR_SOURCE = \ |
35 |
args.o: CFLAGS_FOR_SOURCE = \ |
36 |
-DNATIVE_ENDIAN_VAL=$(NATIVE_ENDIAN_VAL) \ |
36 |
-DNATIVE_ENDIAN_VAL=$(NATIVE_ENDIAN_VAL) \ |
37 |
-DNATIVE_POINTER_SIZE=$(NATIVE_POINTER_SIZE) |
37 |
-DNATIVE_POINTER_SIZE=$(NATIVE_POINTER_SIZE) |
38 |
NATIVE_ENDIAN=$(shell readelf -h native.o \ |
38 |
NATIVE_ENDIAN=$(shell $(READELF) -h native.o \ |
39 |
| grep Data \ |
39 |
| grep Data \ |
40 |
| sed 's/.*, //;s/ endian//') |
40 |
| sed 's/.*, //;s/ endian//') |
41 |
NATIVE_ENDIAN_LITTLE=$(findstring $(NATIVE_ENDIAN),$(findstring little,$(NATIVE_ENDIAN))) |
41 |
NATIVE_ENDIAN_LITTLE=$(findstring $(NATIVE_ENDIAN),$(findstring little,$(NATIVE_ENDIAN))) |
42 |
NATIVE_ENDIAN_BIG=$(findstring $(NATIVE_ENDIAN),$(findstring big,$(NATIVE_ENDIAN))) |
42 |
NATIVE_ENDIAN_BIG=$(findstring $(NATIVE_ENDIAN),$(findstring big,$(NATIVE_ENDIAN))) |
43 |
NATIVE_ENDIAN_VAL=$(if $(NATIVE_ENDIAN_LITTLE),ELFDATA2LSB,$(if $(NATIVE_ENDIAN_BIG),ELFDATA2MSB,ELFDATANONE)) |
43 |
NATIVE_ENDIAN_VAL=$(if $(NATIVE_ENDIAN_LITTLE),ELFDATA2LSB,$(if $(NATIVE_ENDIAN_BIG),ELFDATA2MSB,ELFDATANONE)) |
44 |
NATIVE_POINTER_SIZE=$(shell readelf -wi native.o \ |
44 |
NATIVE_POINTER_SIZE=$(shell $(READELF) -wi native.o \ |
45 |
| grep "Pointer Size:" \ |
45 |
| grep "Pointer Size:" \ |
46 |
| sed 's/.*: *//') |
46 |
| sed 's/.*: *//') |
47 |
%.o: %.c |
47 |
%.o: %.c |