make-w32
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issues with defining output objects


From: zxuiji
Subject: Re: Issues with defining output objects
Date: Sun, 29 Nov 2015 02:37:53 -0800 (PST)

Never mind, I figured out how to sort it:

...
OBJS=$(patsubst %.c, ${CURDIR}/../objs/$(.DEFAULT_GOAL)/%.o, $(SOURCES))
OUT=${CURDIR}/../../bin/codit_$(.DEFAULT_GOAL)$(EXE)

$(.DEFAULT_GOAL): $(OBJS)
	$(CC) $(LIBS) $(OBJS) -o $(OUT)

$(OBJS): ${CURDIR}/../objs/$(.DEFAULT_GOAL)/%.o : %.c
	$(CC) -v $(LIBS) $(INCS) $(CFLAGS) -c $< -o $@
...
I shifted the OBJS variable to after the forced definition of .DEFAULT_GOAL to ensure nothing went to undesired locations.

View this message in context: Re: Issues with defining output objects
Sent from the Gnu - Make - W32 mailing list archive at Nabble.com.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]