1 # Makefile to rebuild the test modules for a given bits-endianess combination
2 USAGE
:= make BITS
=32|
64 END
=be|le
[CC
=..
] [CFLAGS
=...
]
5 CFLAGS
:= -Wall
-DBITS_PER_LONG
=$(BITS
)
10 complex
/complex_b.ko \
11 complex
/complex_c.ko \
12 complex
/complex_d.ko \
13 complex
/complex_e.ko \
20 map
/input_map_new.ko \
26 normal
/export_dep.ko \
27 normal
/export_nodep.ko \
28 normal
/noexport_dep.ko \
29 normal
/noexport_doubledep.ko \
30 normal
/noexport_nodep.ko \
31 rename
/rename-new.ko \
32 rename
/rename-old.ko \
33 rename
/rename-version.ko \
39 @case
"$(BITS)-$(END)" in \
40 32-le |
32-be |
64-le |
64-be
) ;; \
42 echo
"Usage: $(USAGE)" >&2; \
46 build
: $(patsubst %.ko
, $(BITS
)-$(END
)/%-$(BITS
).ko
, $(targets
))
52 $(BITS
)-$(END
)/map
/%-$(BITS
).o \
53 $(BITS
)-$(END
)/modinfo
/%-$(BITS
).o \
54 $(BITS
)-$(END
)/rename
/%-$(BITS
).o \
55 $(BITS
)-$(END
)/normal
/%-$(BITS
).o \
56 $(BITS
)-$(END
)/unknown
/%-$(BITS
).o \
57 $(BITS
)-$(END
)/complex
/%-$(BITS
).o \
58 $(BITS
)-$(END
)/alias
/%-$(BITS
).o \
59 $(BITS
)-$(END
)/loop
/%-$(BITS
).o \
60 $(BITS
)-$(END
)/normal
/%-$(BITS
).o \
63 $(CC
) $(CFLAGS
) -o
$@
-c
$^
70 *\
$(BITS
)-bit\
$$end2\
*) ;; \
71 *) echo
"$@ does not look like a $(BITS)-$(END) object:" >&2; \