-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
executable file
·40 lines (30 loc) · 1.21 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
ifndef ROOT
ROOT = ../..
endif
include $(ROOT)/config.mak
INCLDIR = $(ROOT)/INCLUDE
LIBDIR = $(ROOT)/LIB
BINS = sima t_graph graphgen
HEADERS = sim-parameters.h utils.h user_event_handlers.h msg_definition.h entity_definition.h lunes.h lunes_constants.h
#------------------------------------------------------------------------------
CFLAGS += -g $(OPTFLAGS) -I. -I$(INCLDIR) `pkg-config --cflags glib-2.0`
LDFLAGS = -L$(LIBDIR)
LIBS = -lartis_static -lpthread -lm `pkg-config --libs glib-2.0`
LDFLAGS += $(LIBS)
#------------------------------------------------------------------------------
all: $(BINS)
t_graph: t_graph.o utils.o user_event_handlers.o lunes.o $(HEADERS)
$(CC) -g -o $@ $(CFLAGS) t_graph.o utils.o user_event_handlers.o lunes.o $(LDFLAGS)
graphgen: graphgen.c
$(CC) -g -o $@ $(CFLAGS) graphgen.c -ligraph -I/usr/include/igraph-0.7.1/include/
.c:
$(CC) -g -o $@ $(CFLAGS) $< $(LDFLAGS)
#------------------------------------------------------------------------------
clean :
rm -f $(BINS) *.o *~
rm -f *.out *.err
rm -f *.finished
cleanall : clean
rm -f *.dat *.log *.dot
rm -f evaluation/*.ps
#------------------------------------------------------------------------------