\r
# settings\r
#use_musashi = 1\r
-use_mz80 = 1\r
+#use_mz80 = 1\r
amalgamate = 0\r
#profile = 1\r
#up = 1\r
\r
\r
CFLAGS += -I../.. -I. -D_UNZIP_SUPPORT -DNO_SYNC # -DBENCHMARK\r
-CFLAGS += -Wall -Winline\r
+CFLAGS += -Wall -Winline -G0\r
ifeq ($(DEBUG),)\r
-CFLAGS += -O2 -G0 -ftracer -fstrength-reduce -ffast-math\r
+CFLAGS += -O2 -ftracer -fstrength-reduce -ffast-math\r
else\r
CFLAGS += -ggdb\r
endif\r
OBJS += ../../Pico/sound/sn76496.o ../../Pico/sound/ym2612.o\r
# zlib (hacked)\r
OBJS += ../../zlib/gzio.o ../../zlib/inffast.o ../../zlib/inflate.o ../../zlib/inftrees.o ../../zlib/trees.o \\r
- ../../zlib/deflate.o ../../zlib/crc32.o ../../zlib/adler32.o ../../zlib/zutil.o ../../zlib/compress.o\r
+ ../../zlib/deflate.o ../../zlib/crc32.o ../../zlib/adler32.o ../../zlib/zutil.o ../../zlib/compress.o \\r
+ ../../zlib/uncompr.o\r
# unzip\r
OBJS += ../../unzip/unzip.o ../../unzip/unzip_stream.o\r
# CPU cores\r
CFLAGS += -D_USE_MZ80\r
OBJS += ../../cpu/mz80/mz80.o\r
else\r
-$(error nothing here!)\r
+CFLAGS += -D_USE_CZ80\r
+OBJS += ../../cpu/cz80/cz80.o\r
endif\r
+# bg images\r
+OBJS += data/bg32.o data/bg40.o\r
\r
\r
-LIBS += -lpng -lm -lpspgu -lpsppower -Wl,-Map=PicoDrive.map # -lpspaudio -lpsphprm\r
+LIBS += -lpng -lm -lpspgu -lpsppower -Wl,-Map=PicoDrive.map -lpspaudio\r
\r
# target\r
TARGET = PicoDrive\r
@echo ">>>" $<\r
$(CC) $(CFLAGS) -Wno-unused -c $< -o $@\r
\r
-# ?\r
+data/bg32.o: data/bg32.bin\r
+ bin2o -i $< $@ bgdatac32\r
+\r
+data/bg40.o: data/bg40.bin\r
+ bin2o -i $< $@ bgdatac40\r
+\r
+#\r
up: EBOOT.PBP\r
@cp -v $^ /media/disk/PSP/GAME/PicoDrive/\r
\r