@@ -1605,42 +1605,41 @@ llama-q8dot: pocs/vdot/q8dot.cpp ggml/src/ggml.o \
1605
1605
# Mark legacy binary targets as .PHONY so that they are always checked.
1606
1606
.PHONY : main quantize perplexity embedding server
1607
1607
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
+
1608
1612
# NOTE: We currently will always build the deprecation-warning `main` and `server` binaries to help users migrate.
1609
1613
# 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 )
1613
1616
@echo " NOTICE: The 'main' binary is deprecated. Please use 'llama-cli' instead."
1614
1617
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 )
1618
1620
@echo " NOTICE: The 'server' binary is deprecated. Please use 'llama-server' instead."
1619
1621
1620
- quantize : examples/deprecation-warning/deprecation-warning.cpp
1622
+ quantize : examples/deprecation-warning/deprecation-warning.o
1621
1623
ifneq (,$(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)
1624
1625
@echo "# ########"
1625
1626
@echo "WARNING: The 'quantize' binary is deprecated. Please use 'llama-quantize' instead."
1626
1627
@echo " Remove the 'quantize' binary to remove this warning."
1627
1628
@echo "# ########"
1628
1629
endif
1629
1630
1630
- perplexity : examples/deprecation-warning/deprecation-warning.cpp
1631
+ perplexity : examples/deprecation-warning/deprecation-warning.o
1631
1632
ifneq (,$(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)
1634
1634
@echo "# ########"
1635
1635
@echo "WARNING: The 'perplexity' binary is deprecated. Please use 'llama-perplexity' instead."
1636
1636
@echo " Remove the 'perplexity' binary to remove this warning."
1637
1637
@echo "# ########"
1638
1638
endif
1639
1639
1640
- embedding : examples/deprecation-warning/deprecation-warning.cpp
1640
+ embedding : examples/deprecation-warning/deprecation-warning.o
1641
1641
ifneq (,$(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)
1644
1643
@echo "# ########"
1645
1644
@echo "WARNING: The 'embedding' binary is deprecated. Please use 'llama-embedding' instead."
1646
1645
@echo " Remove the 'embedding' binary to remove this warning."
0 commit comments