# HG changeset patch # User bellard # Date 1044133057 0 # Node ID a717c451cf1b2eb45be478ceb3d051bec4482e9c # Parent c8b438ecf8f45e096f4a0bc406978613bfaeb227 dependencies are only build with make depend diff -r c8b438ecf8f4 -r a717c451cf1b Makefile --- a/Makefile Sat Feb 01 00:18:50 2003 +0000 +++ b/Makefile Sat Feb 01 20:57:37 2003 +0000 @@ -113,14 +113,14 @@ tests: apiexample cpuid_test $(TESTS) -$(LIB): .depend $(OBJS) +$(LIB): $(OBJS) rm -f $@ $(AR) rc $@ $(OBJS) ifneq ($(CONFIG_OS2),yes) $(RANLIB) $@ endif -$(SLIB): .depend $(OBJS) +$(SLIB): $(OBJS) $(CC) $(SHFLAGS) -o $@ $(OBJS) $(EXTRALIBS) dsputil.o: dsputil.c dsputil.h @@ -142,13 +142,11 @@ $(CC) $(CFLAGS) -mcpu=$$newcpu -c -o $@ $< endif -.depend: $(SRCS) +depend: $(SRCS) $(CC) -MM $(CFLAGS) $^ 1>.depend dep: depend -depend: .depend - clean: rm -f *.o *.d *~ .depend $(LIB) $(SLIB) *.so i386/*.o i386/*~ \ armv4l/*.o armv4l/*~ \