libcurses.a: libcurses.a(tone.o) libcurses.a(tone.o): $(OBJDIR)/tone.o @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% $(OBJDIR)/tone.o: term/tone.c @echo "[CC] $@" @mkdir -p "$(@D)" @$(CC) -c -o $@ $(CFLAGS) term/tone.c