loader: update to remote 9a16c25

This commit is contained in:
2025-03-12 13:21:56 -07:00
parent de7ae71455
commit e955ad7b91
28 changed files with 895 additions and 564 deletions

View File

@@ -1,24 +1,6 @@
sources = $(wildcard src/*.cpp)
objects = $(sources:.cpp=.o)
os = $(shell uname -s)
static_libs = lib/$(os)/libftd2xx.a
libs = -lpthread
CXXFLAGS = -std=c++11
export DOCKER_BUILDKIT=1
# Assume target is Mac OS if build host is Mac OS; any other host targets Linux
ifeq ($(os), Darwin)
libs += -lobjc -framework IOKit -framework CoreFoundation
else
libs += -lrt
endif
loader: $(objects) ## build the loader executable
$(CXX) $(LDFLAGS) -o $@ $^ $(static_libs) $(libs)
build: ## build the loader in docker (linux)
loader: ## build the loader in docker (linux)
docker build -o . .
.PHONY: clean