From: Alan Cox Date: Sat, 8 Sep 2018 21:00:56 +0000 (+0100) Subject: plato: Fix 6502 build X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=ab5184612042d19f7894794108d277174f0be3d6;p=FUZIX.git plato: Fix 6502 build --- diff --git a/Applications/plato/Makefile.6502 b/Applications/plato/Makefile.6502 index 23f35d4d..edd37212 100644 --- a/Applications/plato/Makefile.6502 +++ b/Applications/plato/Makefile.6502 @@ -17,8 +17,10 @@ FSRCS = fuzix/font.c fuzix/io.c fuzix/keyboard.c fuzix/scale.c fuzix/screen.c \ INC = io.h keyboard.h plato_key.h protocol.h screen.h terminal.h touch.h +# cc65 is weird. Tell it to cc foo/bar.c -o bar.o and it puts bar.o with the +# source code! OBJS = $(SRCS:.c=.o) -FOBJS = $(patsubst fuzix/%.c,%.o, $(FSRCS)) +FOBJS = $(FSRCS:.c=.o) all: plato @@ -28,7 +30,7 @@ plato: $(OBJS) $(FOBJS) $(OBJS): %.o: %.c $(CC) $(COPT) $(CFLAGS) -c $< -o $@ -$(FOBJS): %.o: fuzix/%.c +$(FOBJS): %.o: %.c $(CC) $(COPT) $(CFLAGS) -c $< -o $@ $(OBJS) : $(INC)