Statistics
| Branch: | Tag: | Revision:

sssimulator / Makefile @ 23b895f0

History | View | Annotate | Download (980 Bytes)

1
PEER_SCHED ?= ch_useful_peer_weighted_random
2
CHUNK_SCHED ?= dest_latest_useful_chunk #dl_sched
3

    
4
CFLAGS = -std=c99 -Wall
5
ifndef DBG
6
CFLAGS += -O8
7
endif
8
CFLAGS += -g -I EventScheduler/ -IMatrix/
9
LDLIBS = -lm 
10

    
11
CPPFLAGS += -Dpeer_send=peer_send_p_c
12
CPPFLAGS += -Dpeer_sched=$(PEER_SCHED)
13
CPPFLAGS += -Dchunk_sched=$(CHUNK_SCHED)
14

    
15
ifdef SRC
16
CPPFLAGS += -I$(SRC)
17
VPATH = $(SRC)
18
endif
19

    
20
ifdef NO_BUFF
21
CPPFLAGS += -DNO_BUFFER
22
endif
23

    
24
OBJS = sssim.o sched.o graph.o stats.o
25
OBJS += td.o peer_event.o ed.o overlay.o
26

    
27
all: sssim proc-time
28

    
29
sssim: $(OBJS) EventScheduler/libeventscheduler.a Matrix/libmatrix.a
30

    
31
EventScheduler/libeventscheduler.a:
32
	$(MAKE) -C EventScheduler/
33

    
34
Matrix/libmatrix.a:
35
	$(MAKE) -C Matrix
36

    
37
proc-time: proc-time.c
38

    
39
clean:
40
	rm -f $(OBJS) $(OBJS:.o=.d) sssim
41
	$(MAKE) -C Matrix clean
42
	$(MAKE) -C Test clean
43
	$(MAKE) -C EventScheduler/ clean
44

    
45
sched.o: Makefile
46
sssim.o: Makefile
47
#####################################
48
%.d: %.c
49
	$(CC) -MM -MF $@ $<
50

    
51
-include $(OBJS:.o=.d)