put local tracer in tracee

plus some cleanup here and there
This commit is contained in:
Cedric Roux
2016-06-01 15:42:29 +02:00
parent 05afc953e8
commit 358a37910c
13 changed files with 103 additions and 654 deletions
+36 -7
View File
@@ -1,11 +1,40 @@
all: local remote
CC=gcc
CFLAGS=-Wall -g -pthread -DT_TRACER -I.
local:
make -f Makefile.local
#CFLAGS += -O3 -ffast-math -fomit-frame-pointer
remote:
make -f Makefile.remote textlog enb vcd
LIBS=-lX11 -lm -lpng -lXft
all: textlog enb vcd
textlog: utils.o textlog.o database.o event.o handler.o config.o \
event_selector.o view/view.a gui/gui.a logger/logger.a
$(CC) $(CFLAGS) -o textlog $^ $(LIBS)
enb: utils.o enb.o database.o event.o handler.o config.o \
event_selector.o view/view.a gui/gui.a logger/logger.a
$(CC) $(CFLAGS) -o enb $^ $(LIBS)
vcd: utils.o vcd.o database.o event.o handler.o config.o \
event_selector.o view/view.a gui/gui.a logger/logger.a
$(CC) $(CFLAGS) -o vcd $^ $(LIBS)
.PHONY: all gui/gui.a view/view.a logger/logger.a
gui/gui.a:
cd gui && make
view/view.a:
cd view && make
logger/logger.a:
cd logger && make
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
clean:
make -f Makefile.local clean
make -f Makefile.remote clean
rm -f *.o core tracer_remote textlog enb vcd
cd gui && make clean
cd view && make clean
cd logger && make clean