psp gfx scaling/etc stuff
[libpicofe.git] / psp / Makefile
index 7a0cada..db032d8 100644 (file)
@@ -11,9 +11,9 @@ amalgamate = 0
 \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
@@ -52,7 +52,8 @@ OBJS += ../../Pico/sound/mix.o
 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
@@ -70,6 +71,8 @@ OBJS += ../../cpu/mz80/mz80.o
 else\r
 $(error nothing here!)\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
@@ -109,7 +112,13 @@ readme.txt: ../../tools/textfilter ../base_readme.txt
        @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