split tracer in local/remote and some work on the new gui
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user