Files
DeeJanuz--frametop/hands/track/Makefile
T
DeeJanuzandClaude Opus 5.5 3e3d31c728 Lay out hands/ like Frametop's other components
trackd/ becomes track/, and the calibration helper the Python tools
import moves from the prototype's folder into tools/. The model
development tools (nettest and the scripts that compare it with the
Python models or cut int8 calibration crops) stay in frame-hands with
the prototype they need.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 09:01:10 -06:00

29 lines
1.1 KiB
Makefile

# fh-tracker, the C++ tracker. Needs ncnn built into ../vendor/ncnn/build/install
# (see README.md) and jsoncpp.
NCNN ?= ../vendor/ncnn/build/install
CXXFLAGS ?= -O2 -g -Wall -Wextra -Wno-unused-parameter
CXXFLAGS += -std=c++17 -fopenmp -I$(NCNN)/include/ncnn
LDLIBS = $(NCNN)/lib/libncnn.a -ljsoncpp -fopenmp -lpthread
SRC = main.cpp calib.cpp nets.cpp tracker.cpp io.cpp record.cpp pinch.cpp
HDR = calib.h geom.h nets.h tracker.h io.h record.h pinch.h ../camd/fhring.h ../include/fh_hands.h ../include/fh_gestures.h
all: fh-tracker fh-replay fh-ringplay
fh-tracker: $(SRC) $(HDR)
$(CXX) $(CXXFLAGS) -o $@ $(SRC) $(LDLIBS)
fh-replay: replay.cpp calib.cpp nets.cpp tracker.cpp record.cpp pinch.cpp io.cpp $(HDR)
$(CXX) $(CXXFLAGS) -o $@ replay.cpp calib.cpp nets.cpp tracker.cpp record.cpp pinch.cpp io.cpp $(LDLIBS)
fh-ringplay: ringplay.cpp record.h ../camd/fhring.h
$(CXX) $(CXXFLAGS) -o $@ ringplay.cpp
clean:
rm -f fh-tracker fh-replay fh-ringplay nettest
.PHONY: all clean
nettest: nettest.cpp nets.cpp nets.h geom.h
$(CXX) $(CXXFLAGS) -o $@ nettest.cpp nets.cpp $(LDLIBS)