summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-01 19:30:55 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-01 19:30:55 -0500
commit01bfdf98e4475e13e7b4bb8b8fbd382fa836986e (patch)
treedcf687f1bc64e726b1a3675312ec0f98dd373c19 /Makefile
parentb376a87775d10dc7a693c0e1ecbe59e867e4634a (diff)
switched syntax highlighting to use a number for the state (will be useful later)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index cd60533..e3823f3 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@ ALL_CFLAGS=$(CFLAGS) -Wall -Wextra -Wshadow -Wconversion -Wpedantic -pedantic -s
LIBS=-lSDL2 -lGL -ldl -lm
DEBUG_CFLAGS=$(ALL_CFLAGS) -DDEBUG -O0 -g
RELEASE_CFLAGS=$(ALL_CFLAGS) -O3
+PROFILE_CFLAGS=$(ALL_CFLAGS) -O3 -DPROFILE=1
GLOBAL_DATA_DIR=/usr/share/ted
LOCAL_DATA_DIR=/home/`logname`/.local/share/ted
INSTALL_BIN_DIR=/usr/bin
@@ -10,6 +11,8 @@ ted: *.[ch] text.o
$(CC) main.c text.o -o ted $(DEBUG_CFLAGS) $(LIBS)
release: *.[ch]
$(CC) main.c -o ted $(RELEASE_CFLAGS) $(LIBS)
+profile: *.[ch]
+ $(CC) main.c -o ted $(PROFILE_CFLAGS) $(LIBS)
text.o: text.c text.h base.h lib/stb_truetype.h
$(CC) text.c -c -o $@ $(DEBUG_CFLAGS)
clean: