@@ -1605,42 +1605,41 @@ llama-q8dot: pocs/vdot/q8dot.cpp ggml/src/ggml.o \
16051605# Mark legacy binary targets as .PHONY so that they are always checked.
16061606.PHONY : main quantize perplexity embedding server
16071607
1608+ # Define the object file target
1609+ examples/deprecation-warning/deprecation-warning.o : examples/deprecation-warning/deprecation-warning.cpp
1610+ $(CXX ) $(CXXFLAGS ) -c $< -o $@
1611+
16081612# NOTE: We currently will always build the deprecation-warning `main` and `server` binaries to help users migrate.
16091613# Eventually we will want to remove these target from building all the time.
1610- main : examples/deprecation-warning/deprecation-warning.cpp
1611- $(CXX ) $(CXXFLAGS ) -c $< -o $(call GET_OBJ_FILE, $< )
1612- $(CXX ) $(CXXFLAGS ) $(filter-out $< ,$^ ) $(call GET_OBJ_FILE, $< ) -o $@ $(LDFLAGS )
1614+ main : examples/deprecation-warning/deprecation-warning.o
1615+ $(CXX ) $(CXXFLAGS ) $< -o $@ $(LDFLAGS )
16131616 @echo " NOTICE: The 'main' binary is deprecated. Please use 'llama-cli' instead."
16141617
1615- server : examples/deprecation-warning/deprecation-warning.cpp
1616- $(CXX ) $(CXXFLAGS ) -c $< -o $(call GET_OBJ_FILE, $< )
1617- $(CXX ) $(CXXFLAGS ) $(filter-out % .h $< ,$^ ) $(call GET_OBJ_FILE, $< ) -o $@ $(LDFLAGS )
1618+ server : examples/deprecation-warning/deprecation-warning.o
1619+ $(CXX ) $(CXXFLAGS ) $< -o $@ $(LDFLAGS )
16181620 @echo " NOTICE: The 'server' binary is deprecated. Please use 'llama-server' instead."
16191621
1620- quantize : examples/deprecation-warning/deprecation-warning.cpp
1622+ quantize : examples/deprecation-warning/deprecation-warning.o
16211623ifneq (,$(wildcard quantize) )
1622- $(CXX) $(CXXFLAGS) -c $< -o $(call GET_OBJ_FILE, $<)
1623- $(CXX) $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS)
1624+ $(CXX) $(CXXFLAGS) $< -o $@ $(LDFLAGS)
16241625 @echo "# ########"
16251626 @echo "WARNING: The 'quantize' binary is deprecated. Please use 'llama-quantize' instead."
16261627 @echo " Remove the 'quantize' binary to remove this warning."
16271628 @echo "# ########"
16281629endif
16291630
1630- perplexity : examples/deprecation-warning/deprecation-warning.cpp
1631+ perplexity : examples/deprecation-warning/deprecation-warning.o
16311632ifneq (,$(wildcard perplexity) )
1632- $(CXX) $(CXXFLAGS) -c $< -o $(call GET_OBJ_FILE, $<)
1633- $(CXX) $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS)
1633+ $(CXX) $(CXXFLAGS) $< -o $@ $(LDFLAGS)
16341634 @echo "# ########"
16351635 @echo "WARNING: The 'perplexity' binary is deprecated. Please use 'llama-perplexity' instead."
16361636 @echo " Remove the 'perplexity' binary to remove this warning."
16371637 @echo "# ########"
16381638endif
16391639
1640- embedding : examples/deprecation-warning/deprecation-warning.cpp
1640+ embedding : examples/deprecation-warning/deprecation-warning.o
16411641ifneq (,$(wildcard embedding) )
1642- $(CXX) $(CXXFLAGS) -c $< -o $(call GET_OBJ_FILE, $<)
1643- $(CXX) $(CXXFLAGS) $(filter-out %.h $<,$^) $(call GET_OBJ_FILE, $<) -o $@ $(LDFLAGS)
1642+ $(CXX) $(CXXFLAGS) $< -o $@ $(LDFLAGS)
16441643 @echo "# ########"
16451644 @echo "WARNING: The 'embedding' binary is deprecated. Please use 'llama-embedding' instead."
16461645 @echo " Remove the 'embedding' binary to remove this warning."
0 commit comments