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