summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-28 17:00:49 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-28 17:00:49 -0500
commit410b9b764c4a6c81a3573cf7ca23330d43931829 (patch)
tree9766f5245c9c71a8a67948ef8d2bb05613d74a01 /Makefile
parent52fd5e0c95da236fd14682ed8a7cfa34afbab2c0 (diff)
speed up debug build time
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b049cd4..4b163c4 100644
--- a/Makefile
+++ b/Makefile
@@ -7,8 +7,10 @@ PROFILE_CFLAGS=$(ALL_CFLAGS) -O3 -g -DPROFILE=1
GLOBAL_DATA_DIR=/usr/share/ted
LOCAL_DATA_DIR=/home/`logname`/.local/share/ted
INSTALL_BIN_DIR=/usr/bin
-ted: *.[ch] libpcre2-32.a
- $(CC) main.c -o ted $(DEBUG_CFLAGS) $(LIBS)
+ted: *.[ch] libpcre2-32.a stb_truetype.o
+ $(CC) main.c stb_truetype.o -o ted $(DEBUG_CFLAGS) $(LIBS)
+stb_truetype.o: stb_truetype.c
+ $(CC) $< -c -o $@
release: *.[ch] libpcre2-32.a
$(CC) main.c -o ted $(RELEASE_CFLAGS) $(LIBS)
profile: *.[ch] libpcre2-32.a