aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-02-23 11:19:52 +0000
committerOmar Polo <op@omarpolo.com>2021-02-23 13:43:33 +0100
commita3c5f7451a331d0fe85e1bfb3873b90944df0b63 (patch)
tree21630700a86aa15f9b2629ca382e785d93e11568 /Makefile
parent6b78d24c31854c4d4552ac3e96e36ba8f0090926 (diff)
make sure -o is passed to ${CC} in suffix rule
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 34f05e8..1b3d8fa 100644
--- a/Makefile
+++ b/Makefile
@@ -47,3 +47,8 @@ install: gmid
compile_flags.txt:
printf "%s\n" ${CFLAGS} > compile_flags.txt
+
+# make sure we pass -o to ${CC}. OpenBSD default suffix rule doesn't
+.SUFFIXES: .c .o
+.c.o:
+ ${CC} ${CFLAGS} -c $< -o $@