aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2021-01-30 16:47:48 -0500
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commit84ad2e3c12cb505e3c5e3dd29d05edb529b82174 (patch)
tree23c4ab5496bd9b82734eccb6d4f38e29cc8792ee /Makefile
parentbda3a7edb76c9fe3dc21cbe5a0836829b705b407 (diff)
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
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