m68000: fix build dependencies
authorClinton Ebadi <clinton@unknownlamer.org>
Sun, 27 Jun 2021 21:08:12 +0000 (17:08 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Sun, 27 Jun 2021 21:08:12 +0000 (17:08 -0400)
obj/cpuemu.c needs to rely on a file actually generated by gencpu and
not just gencpu, or make tries to build cpuemu.c before it exists
during a parallel build.

src/m68000/Makefile

index 0e301c1..ff261f1 100644 (file)
@@ -61,7 +61,7 @@ obj/%.o: obj/%.c
 
 # Generated code
 
-obj/cpuemu.c: obj/gencpu
+obj/cpuemu.c: obj/gencpu obj/cpustbl.c
 obj/cpustbl.c: obj/gencpu
        @echo -e "\033[01;33m***\033[00;32m Generating cpuemu.c...\033[00m"
        @cd obj && ./gencpu