Statistics
| Branch: | Revision:

grapes / src / Makefile @ 176b8de8

History | View | Annotate | Download (701 Bytes)

1
ifndef BASE
2
BASE = ..
3
endif
4
CFGDIR ?= .
5

    
6
SUBDIRS = ChunkIDSet ChunkTrading TopologyManager ChunkBuffer PeerSet Scheduler Cache PeerSampler Utils Chunkiser
7
ifneq ($(ARCH),win32)
8
  SUBDIRS += CloudSupport
9
endif
10
COMMON_OBJS = grapes_config.o
11

    
12
OBJ_LSTS = $(addsuffix /objs.lst, $(SUBDIRS))
13

    
14
.PHONY: $(OBJ_LSTS)
15

    
16
all: libgrapes.a
17

    
18
$(OBJ_LSTS):
19
	$(MAKE) -C $(dir $@) objs.lst FFDIR=$(FFDIR) GTK=$(GTK)
20

    
21
libgrapes.a: $(OBJ_LSTS) $(COMMON_OBJS)
22
	$(AR) rcs libgrapes.a `cat $(OBJ_LSTS)` $(COMMON_OBJS)
23

    
24
tests: libgrapes.a
25
	$(MAKE) -C Tests
26

    
27
clean::
28
	for dir in $(SUBDIRS); do \
29
		$(MAKE) -C $$dir clean; \
30
	done
31

    
32
allclean: clean
33
	rm -f *.o *.a
34
	rm -f *.d
35
	$(MAKE) -C Tests clean
36

    
37
include $(BASE)/src/utils.mak