split tracer in local/remote and some work on the new gui

This commit is contained in:
Cedric Roux
2016-04-25 17:53:58 +02:00
parent 4e88857b27
commit e7faea3553
7 changed files with 231 additions and 165 deletions
+7 -26
View File
@@ -1,30 +1,11 @@
CC=gcc
CFLAGS=-Wall -g -pthread -DT_TRACER
all: local remote
#CFLAGS += -O3 -ffast-math -fomit-frame-pointer
local:
make -f Makefile.local
LIBS=-lX11 -lm
#comment those two lines to NOT use shared memory
CFLAGS += -DT_USE_SHARED_MEMORY
LIBS += -lrt
PROG=tracer
OBJS=main.o plot.o database.o forward.o gui.o
$(PROG): gui/gui.a $(OBJS)
$(CC) $(CFLAGS) -o $(PROG) $(OBJS) gui/gui.a $(LIBS)
.PHONY: gui/gui.a
gui/gui.a:
cd gui && make
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
main.o: ../T_IDs.h ../T_defs.h
remote:
make -f Makefile.remote
clean:
rm -f *.o $(PROG) core
cd gui && make clean
make -f Makefile.local clean
make -f Makefile.remote clean