Browse Source

if the include files get updated we want to rebuild

Mike Frysinger 19 years ago
parent
commit
8dae092bd9
2 changed files with 3 additions and 3 deletions
  1. 1 1
      ldso/ldso/Makefile
  2. 2 2
      ldso/libdl/Makefile

+ 1 - 1
ldso/ldso/Makefile

@@ -83,7 +83,7 @@ $(LDSO_FULLNAME): $(OBJS) $(DLINK_OBJS)
 	$(INSTALL) -m 755 $(LDSO_FULLNAME) $(TOPDIR)lib
 	$(LN) -sf $(LDSO_FULLNAME) $(TOPDIR)lib/$(UCLIBC_LDSO)
 
-$(COBJS): %.o : %.c
+$(COBJS): %.o : %.c $(TOPDIR)ldso/include/*.h
 	$(CC) $(XXFLAGS) -I../libdl -c $< -o $@
 	$(STRIPTOOL) -x -R .note -R .comment $*.o
 

+ 2 - 2
ldso/libdl/Makefile

@@ -62,11 +62,11 @@ $(LIBDL): $(OBJS)
 $(LIBDL_PIC): $(PIC_OBJS)
 	$(AR) $(ARFLAGS) $(LIBDL_PIC) $(PIC_OBJS)
 
-libdl.o: libdl.c
+libdl.o: libdl.c $(TOPDIR)ldso/include/*.h
 	$(CC) $(XXFLAGS_NOPIC) -c libdl.c -o libdl.o
 	$(STRIPTOOL) -x -R .note -R .comment $*.o
 
-libdl_pic.o: libdl.c
+libdl_pic.o: libdl.c ../include/*.h
 	$(CC) $(XXFLAGS) -c libdl.c -o libdl_pic.o
 	$(STRIPTOOL) -x -R .note -R .comment $*.o