From 84ad2e3c12cb505e3c5e3dd29d05edb529b82174 Mon Sep 17 00:00:00 2001 From: tslil clingman Date: Sat, 30 Jan 2021 16:47:48 -0500 Subject: Try to squeeze out a little more performance ``Common wisdom'' dictates that placements are often better than stack moves, so we bias the generated move list in this fashion. Seems to be a little faster. --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e519a3c..a62f2f7 100644 --- a/Makefile +++ b/Makefile @@ -2,11 +2,11 @@ STRIP=strip IDIR=include DEFINES=-DDETERMINISTIC -CFLAGS=-O3 -Wall -Wextra -Wpedantic -std=c99 -D_DEFAULT_SOURCE $(DEFINES) -I$(IDIR) -lm +CFLAGS=-O3 -Wall -Wextra -Wpedantic -std=c99 -D_DEFAULT_SOURCE $(DEFINES) -I$(IDIR) CTAK=include/tak.c CTAK_OBJS=$(CTAK:.c=.o) -SRCS=$(wildcard include/*.c) +SRCS=$(filter-out include/lcdlib.c,$(wildcard include/*.c)) OBJS=$(SRCS:.c=.o) BUILDROOT_DIR=buildroot-2020.11.1 @@ -22,10 +22,6 @@ ctaklm: src/ctaklm.o $(OBJS) $(CC) $(CFLAGS) src/ctaklm.o $(OBJS) -o ctaklm $(STRIP) ctaklm -ct1986: src/ct1986.o $(OBJS) - $(CC) $(CFLAGS) src/ct1986.o $(OBJS) -o ct1986 - $(STRIP) ct1986 - pptdb: src/pptdb.o $(CTAK_OBJS) $(CC) $(CFLAGS) src/pptdb.o $(CTAK_OBJS) -o pptdb @@ -38,6 +34,10 @@ 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 + $(STRIP) ct1986 + pi: CC=$(CROSS_CC) pi: STRIP=$(CROSS_STRIP) pi: $(CROSS_CC) clean ctaklm ct1986 -- cgit v1.2.3