From 399d90f1b94717aa0ca5abb1dc43bdb6f4160d13 Mon Sep 17 00:00:00 2001 From: tslil clingman Date: Sun, 31 Jan 2021 15:33:30 -0500 Subject: Fairly important bug fixes to lcdlib, LCD now echoes input! Input polling without line-buffering is done using ncurses, so the buildroot configuration had to change accordingly to include that library. The Makefile changed to accommodate stand-alone building of ct1986 and to include -lcurses where appropriate. There were also some typos about copying ct1986 and ctaklm to the correct directories. --- Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a62f2f7..41dedee 100644 --- a/Makefile +++ b/Makefile @@ -34,13 +34,17 @@ native: clean ctaklm pptdb $(CROSS_CC): ./resources/do_buildroot.sh $(BUILDROOT_DIR) -ct1986: src/ct1986.o include/lcdlib.o $(OBJS) - $(CC) $(CFLAGS) src/ct1986.o $(OBJS) include/lcdlib.o -o ct1986 +ct1986: CC=$(CROSS_CC) +ct1986: STRIP=$(CROSS_STRIP) +ct1986: $(CROSS_CC) clean src/ct1986.o include/lcdlib.o $(OBJS) + $(CC) $(CFLAGS) src/ct1986.o $(OBJS) include/lcdlib.o -o ct1986 -lcurses $(STRIP) ct1986 pi: CC=$(CROSS_CC) pi: STRIP=$(CROSS_STRIP) -pi: $(CROSS_CC) clean ctaklm ct1986 - cp ct1986 ctaklm $(BUILDROOT_DIR)/board/raspberrypi0/rootfs_overlay/ +pi: $(CROSS_CC) ct1986 ctaklm + mkdir -p $(BUILDROOT_DIR)/board/raspberrypi0/rootfs_overlay/usr/bin/ + cp ct1986 ctaklm $(BUILDROOT_DIR)/board/raspberrypi0/rootfs_overlay/usr/bin/ + cp resources/ash-profile $(BUILDROOT_DIR)/board/raspberrypi0/rootfs_overlay/.profile make -C $(BUILDROOT_DIR) $(info Image ready in $(BUILDROOT_DIR)/output/images/sdcard.img) -- cgit v1.3.1