Re: Makefile question
Oleg Drokin <[email protected]> Thu, 05 Dec 2024 07:07:06 -0500
| Newsgroups | org.kernel.vger.smatch |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 2024-12-05 at 13:44 +0300, Dan Carpenter wrote:
> I recently changed symbol.h
>=20
> https://lore.kernel.org/all/5b8d0dee-8fb6-45af-ba6c-7f74aff9a4b8@stanley.=
mountain/
>=20
> Ideally that would make basically every single file rebuild, but it
> doesn't.=C2=A0 That means that "enum type" is wrong, which doesn't seem t=
o
> cause any crashes but it completely breaks the flow analysis so the
> output is garbage.=C2=A0 Garbage output is way worse than crashing.
>=20
> 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=3D'"$(smatch_datadir)"'
$(SMATCH_OBJS) $(SMATCH_CHECKS): smatch.h smatch_slist.h smatch_extra.h
\
smatch_constants.h avl.h