ref: d09d92fa48313d91d1c35d5613071b896990a786
parent: fda3f90cf516fa5a1172f9c4773f85864ca324e9
author: Snesrev <snesrev@protonmail.com>
date: Wed Sep 28 09:10:24 EDT 2022
Update github workflow - Makefile now lets you build the zelda3 exe without the rom
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -32,25 +32,5 @@
if: ${{ matrix.name == 'Mac' }}
run: |
brew install sdl2 coreutils
- - name: Install Python dependencies
- run: |
- pip3 install pillow pyyaml
- - name: Download ROM
- env:
- URL: ${{ secrets.ROM_URL }}
- FILE: tables/zelda3.sfc
- run: |
- wget -q -O ${FILE} ${URL} > /dev/null
- sha256sum ${FILE}
- - name: Prepare resources
- working-directory: tables
- run: |
- echo "::group::Extracting resources"
- time python3 extract_resources.py
- echo "::endgroup::"
-
- echo "::group::Compiling resources"
- time python3 compile_resources.py
- echo "::endgroup::"
- name: Build
- run: make -j$(nproc)
+ run: make -j$(nproc) zelda3
--- a/Makefile
+++ b/Makefile
@@ -10,15 +10,16 @@
.PHONY: all clean clean_obj clean_gen
-all: $(TARGET_EXEC)
-$(TARGET_EXEC): tables/zelda3_assets.dat $(OBJS)
+all: $(TARGET_EXEC) tables/zelda3_assets.dat
+$(TARGET_EXEC): $(OBJS)
$(CC) $(OBJS) -o $@ $(LDFLAGS)
+%.o : %.c
+ $(CC) -c $(CFLAGS) $< -o $@
+
tables/zelda3_assets.dat: tables/dialogue.txt
cd tables; $(PYTHON) compile_resources.py ../$(ROM)
tables/dialogue.txt:
cd tables; $(PYTHON) extract_resources.py ../$(ROM)
-%.o : %.c tables/zelda3_assets.dat
- $(CC) -c $(CFLAGS) $< -o $@
clean: clean_obj clean_gen
clean_obj: