6 CFLAGS = -O3 -fstrength-reduce -fomit-frame-pointer -I./asm/i386
7 ASFLAGS = -x assembler-with-cpp
10 THIN_NAMES = tl_main tl_log tl_timer tl_key tl_mouse tl_joy tl_dpp tl_event \
11 tl_bmp tl_vesa tl_vga tl_video tl_sb tl_sound tl_int
12 THIN_OBJS = $(THIN_NAMES:%=sys/thinlib/lib/%.o)
14 SYS_DEFS = -DIS_LITTLE_ENDIAN -DALLOW_UNALIGNED_IO -DALT_PATH_SEP -DUSE_ASM
16 SYS_INCS = -I./sys/dos -I./sys/thinlib/lib
17 SYS_OBJS = sys/dos/dos.o sys/thinlib/thinlib.o sys/thinlib/keymap.o $(THIN_OBJS) \
18 asm/i386/cpu.o asm/i386/lcd.o asm/i386/refresh.o
24 gnuboy.exe: $(OBJS) $(SYS_OBJS)
25 $(LD) $(CFLAGS) $(LDFLAGS) $(OBJS) $(SYS_OBJS) -o $@
28 rm -f gnuboy.exe gmon.out *.o sys/*.o sys/dos/*.o sys/pc/*.o asm/i386/*.o \
29 sys/thinlib/*.o sys/thinlib/*.exe sys/thinlib/*.o