add alchitry loader

This commit is contained in:
2022-05-16 20:36:27 -07:00
parent 0226d314ec
commit 30d9a2d7c8
27 changed files with 5579 additions and 0 deletions

24
alchitry-loader/makefile Normal file
View File

@@ -0,0 +1,24 @@
sources = $(wildcard src/*.cpp)
objects = $(sources:.cpp=.o)
static_libs = lib/macos/libftd2xx.a
libs = -lpthread
CXXFLAGS = -std=c++11
UNAME := $(shell uname)
# Assume target is Mac OS if build host is Mac OS; any other host targets Linux
ifeq ($(UNAME), Darwin)
libs += -lobjc -framework IOKit -framework CoreFoundation
else
libs += -lrt
endif
all: loader
loader: $(objects)
$(CXX) $(LDFLAGS) -o $@ $^ $(static_libs) $(libs)
.PHONY: clean
clean:
rm -rf loader $(objects)