defs.mak.in: OBJS split into C_OBJS CXX_OBJS

This split has the effect (with modified .o.c Makefile rule of
correctly using the $CC for .c files and not try to build .cpp
with C compiler, which fails in oa/** for example.
This commit is contained in:
Darryl L. Miles 2024-10-04 20:07:03 +01:00 committed by R. Timothy Edwards
parent 73a6ac1650
commit 4b094e4632
1 changed files with 3 additions and 1 deletions

View File

@ -108,6 +108,8 @@ OA = @OA@
OA_LIBS = @OA_LIBS@
DEPSRCS = ${SRCS}
OBJS = ${SRCS:.c=.o} ${CXXSRCS:.cpp=.o}
C_OBJS = ${SRCS:.c=.o}
CXX_OBJS = ${CXXSRCS:.cpp=.o}
OBJS = ${CXX_OBJS} ${C_OBJS}
LIB_OBJS = ${LIB_SRCS:.c=.o}
CLEANS = Depend ${OBJS} ${LIB_OBJS} lib${MODULE}.a lib${MODULE}.o ${MODULE}