blob: 59778ab5d9f1bf44643853ecafa55e6995cf4a4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
LD_EXTRAS := -L. -LOne -l$(LIB_PREFIX)One -LTwo -l$(LIB_PREFIX)Two
C_SOURCES := main.c
include Makefile.rules
.PHONY:
a.out: lib_One lib_Two
lib_%:
$(MAKE) VPATH=$(SRCDIR)/$* -I $(SRCDIR) -f $(SRCDIR)/$*.mk
clean::
$(MAKE) -f $(SRCDIR)/One.mk clean
$(MAKE) -f $(SRCDIR)/Two.mk clean
|