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