Powered by Linux
Re: Makefile question — Semantic Matching Tool

Re: Makefile question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2024-12-05 at 13:44 +0300, Dan Carpenter wrote:
> I recently changed symbol.h
> 
> https://lore.kernel.org/all/5b8d0dee-8fb6-45af-ba6c-7f74aff9a4b8@stanley.mountain/
> 
> Ideally that would make basically every single file rebuild, but it
> doesn't.  That means that "enum type" is wrong, which doesn't seem to
> cause any crashes but it completely breaks the flow analysis so the
> output is garbage.  Garbage output is way worse than crashing.
> 
> Does anyone know how to fix Makefiles?

Does not look like it's listed in the list of files that objects depend
on?
I am not sure what is LIB_H since it's not defined anywhere.

There are various autodep tools to generate real dependencies, but I
suspect you can just specify *.h so any header file rebuilds
everything?

smatch.o: smatch.c $(LIB_H) smatch.h check_list.h check_list_local.h
        $(CC) $(CFLAGS) -c smatch.c -
DSMATCHDATADIR='"$(smatch_datadir)"'

$(SMATCH_OBJS) $(SMATCH_CHECKS): smatch.h smatch_slist.h smatch_extra.h
\
        smatch_constants.h avl.h








[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux