aostruszka / nonrec-make

Non-recursive make template for GNU make

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can I compile exe and so in one directory hierarchy both?

lxyscls opened this issue · comments

My hierarchy is just as below.
/ex
dir_1/
dir_2/
dir_3/
dir_4/
dir_4a/
I want to build an exec and a library. The exec depends on the C files under dir_1/2/3. The library only depens on the C files under dir_4a.

So how to define the DEPS about the exec? $(SUBDIRS_TGTS) seems not work well, because it will to find the library, which I do not want it to.

Sorry for not getting back to you earlier. I was too busy then and then I simply forgot about question.
I'll take a look at your question and get back to you.

Quick question - does the exec depend on library?