summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lwlib/Makefile.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/lwlib/Makefile.in b/lwlib/Makefile.in
index 35c52703bb2..66b37798089 100644
--- a/lwlib/Makefile.in
+++ b/lwlib/Makefile.in
@@ -48,7 +48,8 @@ liblw.a: $(OBJS)
#If running ranlib fails, probably there is none.
#That's ok. So don't stop the build.
-lwlib.o: $(srcdir)/lwlib.c
+# Depend on Makefile so that we recompile if TOOLKIT_DEFINES changes.
+lwlib.o: $(srcdir)/lwlib.c Makefile
$(CC) -c $(TOOLKIT_DEFINES) $(ALL_CFLAGS) $(srcdir)/lwlib.c
xrdb-cpp.o: $(srcdir)/xrdb-cpp.c