diff --git a/Makefile b/Makefile index bf0e09b4..f4fcebc9 100644 --- a/Makefile +++ b/Makefile @@ -87,11 +87,11 @@ include compile.mk ifdef ARCH_MAC STANDALONE_LDFLAGS += $(MAC_SDK_FLAGS) endif -STANDALONE_LDFLAGS += -L. -lRack +STANDALONE_OBJECTS += $(TARGET) -include $(STANDALONE_DEPENDENCIES) -$(STANDALONE_TARGET): $(STANDALONE_OBJECTS) $(STANDALONE_SOURCES) $(TARGET) - $(CXX) $(CXXFLAGS) -o $@ $(STANDALONE_OBJECTS) $(STANDALONE_SOURCES) $(STANDALONE_LDFLAGS) +$(STANDALONE_TARGET): $(STANDALONE_SOURCES) $(STANDALONE_OBJECTS) + $(CXX) $(CXXFLAGS) -o $@ $^ $(STANDALONE_LDFLAGS) # Convenience targets