move pack_file to tool

This commit is contained in:
Zack Buhman 2026-03-25 19:43:50 -05:00
parent fe781beef4
commit 3facb17f90
4 changed files with 6 additions and 2 deletions

View File

@ -82,8 +82,8 @@ all: main
$(CXX) $(ARCH) $(CXXSTD) $(CFLAGS) $(OPT) $(DEBUG) -c $< -o $@
PACK_FILENAMES = $(shell cat filenames.txt)
test.pack: pack_main $(PACK_FILENAMES)
./pack_main $@ $(PACK_FILENAMES)
test.pack: tool/pack_file $(PACK_FILENAMES)
./tool/pack_file $@ $(PACK_FILENAMES)
test.pack.o: test.pack
$(OBJCOPY) -I binary -O $(OBJARCH) $< $@

View File

@ -1,5 +1,9 @@
OPT = -O2
CFLAGS = -I../../opus-dist/include
CFLAGS = -I../include
opus_encode: opus_encode.c ../../opus-dist/lib/libopus.a
gcc -o $@ $(OPT) $(CFLAGS) -lm $^
pack_file: pack_file.cpp
g++ -o $@ $(OPT) $(CFLAGS) $^

BIN
tool/pack_file Executable file

Binary file not shown.