bugfixes, new scaling, double ym upd at 940
[picodrive.git] / platform / linux / Makefile
index 0b8c37b..a01a529 100644 (file)
@@ -63,10 +63,11 @@ clean: tidy
 tidy:
        @$(RM) $(OBJS)
        @make -C ../../cpu/mz80/ clean
+       @make -C ../gp2x/helix/ X86=1 clean
 
-PicoDrive : $(OBJS)
+PicoDrive : $(OBJS) ../gp2x/helix/helix_mp3_x86.a
        @echo $@
-       @$(GCC) $(COPT) $(OBJS) ../gp2x/helix/helix_mp3_x86.a $(LDFLAGS) -lm -Wl,-Map=PicoDrive.map -o $@
+       @$(GCC) $(COPT) $^ $(LDFLAGS) -lm -Wl,-Map=PicoDrive.map -o $@
 
 
 ../../cpu/mz80/mz80.o : ../../cpu/mz80/mz80.asm
@@ -76,6 +77,9 @@ PicoDrive : $(OBJS)
 ../../cpu/mz80/mz80.asm :
        @make -C ../../cpu/mz80/
 
+../gp2x/helix/helix_mp3_x86.a:
+       @make -C ../gp2x/helix/ X86=1 clean all
+
 .c.o:
        @echo $<
        @$(GCC) $(COPT) $(DEFINC) -c $< -o $@
@@ -86,7 +90,7 @@ PicoDrive : $(OBJS)
 
 ../../Pico/sound/ym2612.o : ../../Pico/sound/ym2612.c
        @echo $@
-       @$(GCC) $(COPT_COMMON) $(DEFINC) -DEXTERNAL_YM2612 -c $< -o $@ # -mtune=arm940t
+       @$(GCC) $(COPT_COMMON) $(DEFINC) -c $< -o $@ # -mtune=arm940t -DEXTERNAL_YM2612
 
 # faked asm
 ../../Pico/Draw.o : ../../Pico/Draw.c