Make the main() function more robust.
Make $(OBJDIR) an order-only prerequisite.