make sure -o is passed to ${CC} in suffix rule

This commit is contained in:
Omar Polo 2021-02-23 11:19:52 +00:00
parent 6b78d24c31
commit a3c5f7451a
No known key found for this signature in database
GPG Key ID: 35F98C96A1786F0D
1 changed files with 5 additions and 0 deletions

View File

@ -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 $@