Files
s390-tools/libutil/Makefile
Ingo Franzki 6a860a01c3 libutil: Add -fPIC option for building libutil objects
Add the -fPIC option when building the libutil objects to generate
position-independent code, and allow them to be used in dynamically
loaded shared libraries.

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Acked-by: Jan Höppner <hoeppner@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
2020-10-12 13:11:21 +02:00

52 lines
1.1 KiB
Makefile

include ../common.mak
lib = libutil.a
examples = util_base_example \
util_panic_example \
util_path_example \
util_scandir_example \
util_file_example \
util_libc_example \
util_opt_example \
util_opt_command_example \
util_prg_example \
util_rec_example
all: $(lib)
examples: $(lib) $(examples)
objects = util_base.o \
util_path.o \
util_scandir.o \
util_file.o \
util_libc.o \
util_list.o \
util_opt.o \
util_panic.o \
util_part.o \
util_prg.o \
util_proc.o \
util_rec.o \
util_sys.o
util_base_example: util_base_example.o $(lib)
util_panic_example: util_panic_example.o $(lib)
util_path_example: util_path_example.o $(lib)
util_scandir_example: util_scandir_example.o $(lib)
util_file_example: util_file_example.o $(lib)
util_libc_example: util_libc_example.o $(lib)
util_opt_example: util_opt_example.o $(lib)
util_opt_command_example: util_opt_command_example.o $(lib)
util_panic_example: util_panic_example.o $(lib)
util_prg_example: util_prg_example.o $(lib)
util_rec_example: util_rec_example.o $(lib)
$(lib): $(objects)
$(lib): ALL_CFLAGS += -fPIC
install: all
clean:
rm -f *.o $(lib) $(examples)