Commit eb8e9d95 authored by Alessandro Rubini's avatar Alessandro Rubini

tools/Makefile: depend on lib and common header

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent be9edec7
......@@ -14,9 +14,11 @@ all modules: $(hostprogs-y)
clean:
rm -f $(hostprogs-y) *.o *~
$(hostprogs-y): tools-common.h $(wildcard ../lib/*.[ch])
# make nothing for modules_install, but avoid errors
modules_install install:
# we need this as we are out of the kernel
%: %.c
$(HOSTCC) $(HOST_EXTRACFLAGS) -O2 -Wall $^ -o $@
$(HOSTCC) $(HOST_EXTRACFLAGS) -O2 -Wall $*.c -L../lib -lfdelay -o $@
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment