mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Commit851f685993("Makefile: Add dependency between libvmcp and libutil to fix -j builds") introduced the following regression $ make clean CLEAN /home2/holzheu/src/s390-tools ... CLEAN libccw CC libutil/util_base.o CC libutil/util_path.o For the "clean" target the new library dependency triggers a build of libutil. So remove the dependency again. To fix the parallel build issue, no longer build the examples with "make all" and add a new target "examples" that can now be used for building the example programs. Fixes:851f685993("Makefile: Add dependency between libvmcp and libutil to fix -j builds") Signed-off-by: Michael Holzheu <holzheu@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
50 lines
1.1 KiB
Makefile
50 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_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)
|
|
|
|
install: all
|
|
|
|
clean:
|
|
rm -f *.o $(lib) $(examples)
|