add GUI emulator

This commit is contained in:
Shuanglei Tao
2025-04-27 14:02:13 +08:00
parent 6d1bbcf3e3
commit 1b9d5b3334
10 changed files with 361 additions and 28 deletions

18
Makefile.win32 Normal file
View File

@@ -0,0 +1,18 @@
CC = gcc
CFLAGS = -Wall -O2 -IGUI -DPAGE_HEIGHT=600
LDFLAGS = -lgdi32 -mwindows
SRCS = GUI/Adafruit_GFX.c GUI/u8g2_font.c GUI/fonts.c GUI/GUI.c GUI/Lunar.c emulator.c
OBJS = $(SRCS:.c=.o)
TARGET = emulator.exe
all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) -o $@ $^ $(LDFLAGS)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(OBJS) $(TARGET)