mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Build: $ make -C libutil/util_log_example * Every time a -V option is passed, the verbosity level increases and extra messages are enabled. Test: $ ./libutil/util_log_example # No output $ ./libutil/util_log_example -V ERROR: This is an ERROR message $ ./libutil/util_log_example -VV ERROR: This is an ERROR message WARN: This is a WARN message $ ./libutil/util_log_example -VVV ERROR: This is an ERROR message WARN: This is a WARN message INFO: This is an INFO message $ ./libutil/util_log_example -VVVV ERROR: This is an ERROR message WARN: This is a WARN message INFO: This is an INFO message DEBUG: This is a DEBUG message $ ./libutil/util_log_example -VVVVV ERROR: This is an ERROR message WARN: This is a WARN message INFO: This is an INFO message DEBUG: This is a DEBUG message TRACE: This is a TRACE message Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com> Reviewed-by: Jan Hoeppner <hoeppner@linux.ibm.com> Reviewed-by: Philipp Rudo <prudo@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
55 lines
1.2 KiB
Makefile
55 lines
1.2 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_log_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_log.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_log_example: util_log_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)
|