Library: preparations for sorting out Makefiles
authorAlan Cox <alan@linux.intel.com>
Fri, 29 Sep 2017 21:10:39 +0000 (22:10 +0100)
committerAlan Cox <alan@linux.intel.com>
Fri, 29 Sep 2017 21:10:39 +0000 (22:10 +0100)
Library/libs/Makefile.6502
Library/tools/syscall_6502.c

index e018acb..6fcaf5b 100644 (file)
@@ -2,8 +2,8 @@ CC = cl65
 ASM = ca65
 AR = ar65
 LINKER = ld65
-CC_OPT = -t none -O -D__STDC__ --all-fastcall -c -I../include/ -I../include/6502/
-CC_NOOPT = -t none -D__STDC__ --all-fastcall -c -I../include/ -I../include/6502/
+CC_OPT = -t none -O -D__STDC__ -c -I../include/ -I../include/6502/
+CC_NOOPT = -t none -D__STDC__ -c -I../include/ -I../include/6502/
 ASM_OPT = -o
 LINKER_OPT = -o
 SRC_CRT0 = crt0_6502.s crt0nostdio_6502.s
index cbc0681..9d8e1e5 100644 (file)
@@ -59,6 +59,8 @@ static void write_makefile(void)
   for (i = 1; i < NR_SYSCALL; i++)
     fprintf(fp, "ASRCS += syscall_%s.s\n", syscall_name[i]);
   fprintf(fp, "\n\nASRCALL = $(ASRCS) $(ASYS)\n");
+  fprintf(fp, "\n$(ASRCS): ../../tools/syscall_6502\n");
+  fprintf(fp, "\t(cd ..;../tools/syscall_6502)\n\n");
   fprintf(fp, "\nAOBJS = $(ASRCALL:.s=.o)\n\n");
   fprintf(fp, "../syslib.lib: $(AOBJS)\n");
   fprintf(fp, "\t$(AR) a ../syslib.lib $(AOBJS)\n\n");