summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-11-03 18:22:44 -0400
committerpommicket <pommicket@gmail.com>2022-11-03 18:22:44 -0400
commit4d995edfdde5953bc5669c54b1194be40a3641f2 (patch)
treedf24530695859b1cf7b48ee2775f0b57a990edc4 /Makefile
parent1e49845629e93d4513b9388c524d7d1e0ac945f8 (diff)
better shader system
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index e1f14f7..92123c8 100644
--- a/Makefile
+++ b/Makefile
@@ -10,10 +10,10 @@ 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
-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) stb_truetype.c -c -o stb_truetype.o
+ted: *.[ch] libpcre2-32.a stb_truetype.o stb_image.o
+ $(CC) main.c stb_truetype.o stb_image.o -o ted $(DEBUG_CFLAGS) $(LIBS)
+%.o: %.c
+ $(CC) -Wall $< -c -o $@
release: *.[ch] libpcre2-32.a
$(CC) main.c -o ted $(RELEASE_CFLAGS) $(LIBS)
profile: *.[ch] libpcre2-32.a