public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe4b07f
)
plato: Fix 6502 build
author
Alan Cox
<alan@linux.intel.com>
Sat, 8 Sep 2018 21:00:56 +0000
(22:00 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Sat, 8 Sep 2018 21:00:56 +0000
(22:00 +0100)
Applications/plato/Makefile.6502
patch
|
blob
|
history
diff --git
a/Applications/plato/Makefile.6502
b/Applications/plato/Makefile.6502
index
23f35d4
..
edd3721
100644
(file)
--- 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)