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