replace coroutine to setjmp

This commit is contained in:
2024-07-22 21:36:18 +09:00
parent aea52f9e63
commit 3181653d92
13 changed files with 67 additions and 943 deletions

View File

@@ -1,18 +1,11 @@
CC=tcc
CFLAGS= -c -Wall -g -Wextra
SRC:=$(wildcard *.c)
OBJ:=$(SRC:.c=.o)
all: gb
clean:
make clean -C co/
rm -f $(OBJ)
rm -f *.o
rm -f gb
%.o: %.c gb.h
$(CC) $(CFLAGS) -o $@ $<
gb: $(OBJ)
make all -C co/
$(CC) co/*.o *.o -lucontext -lSDL2 -g -o gb
$(CC) jmp.S *.c -lSDL2 -o gb