diff options
author | Omar Polo <op@omarpolo.com> | 2021-02-23 11:19:52 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-02-23 13:43:33 +0100 |
commit | a3c5f7451a331d0fe85e1bfb3873b90944df0b63 (patch) | |
tree | 21630700a86aa15f9b2629ca382e785d93e11568 /Makefile | |
parent | 6b78d24c31854c4d4552ac3e96e36ba8f0090926 (diff) |
make sure -o is passed to ${CC} in suffix rule
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 $@ |