summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-03-02 18:57:45 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-03-02 18:57:45 -0500
commit5625bc523861cf16c1aade7a4e7e6f8731a24b6e (patch)
treebfed6af1d5ddc60bbc22a1ab8d74036034c67db3 /Makefile
parentdd349c6c7e0eba659afc2149fd214f9972826052 (diff)
got OpenBSD build to work
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 5894f73..c7559c0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
ALL_CFLAGS=$(CFLAGS) -Wall -Wextra -Wshadow -Wconversion -Wpedantic -pedantic -std=gnu11 \
-Wno-unused-function -Wno-fixed-enum-extension -Wimplicit-fallthrough -Wno-format-truncation -Wno-unknown-warning-option
-LIBS=-lSDL2 -lGL -ldl -lm libpcre2-32.a -Ipcre2-10.36/build
+LIBS=-lSDL2 -lGL -lm libpcre2-32.a
DEBUG_CFLAGS=$(ALL_CFLAGS) -DDEBUG -O0 -g
RELEASE_CFLAGS=$(ALL_CFLAGS) -O3 -g
PROFILE_CFLAGS=$(ALL_CFLAGS) -O3 -g -DPROFILE=1
@@ -10,7 +10,7 @@ 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) $< -c -o $@
+ $(CC) stb_truetype.c -c -o stb_truetype.o
release: *.[ch] libpcre2-32.a
$(CC) main.c -o ted $(RELEASE_CFLAGS) $(LIBS)
profile: *.[ch] libpcre2-32.a
@@ -28,10 +28,9 @@ install: release
install ted $(INSTALL_BIN_DIR)
libpcre2-32.a: pcre2-10.36.zip
rm -rf pcre2-10.36
- unzip $<
- mkdir pcre2-10.36/build
- cd pcre2-10.36/build && cmake -DPCRE2_BUILD_PCRE2_32=ON .. && $(MAKE) -j8
- cp pcre2-10.36/build/$@ ./
+ unzip pcre2-10.36.zip
+ cd pcre2-10.36 && cmake -DPCRE2_BUILD_PCRE2_32=ON . && $(MAKE) -j8
+ cp pcre2-10.36/libpcre2-32.a ./
ted.deb: release
rm -rf /tmp/ted