Skip to content
Snippets Groups Projects
Makefile 482 B
Newer Older
Cedric Roux's avatar
Cedric Roux committed
CC=gcc
CFLAGS=-Wall -g -pthread -DT_TRACER
#CFLAGS += -O3 -ffast-math -fomit-frame-pointer
Cedric Roux's avatar
Cedric Roux committed

#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/gui.a
Cedric Roux's avatar
Cedric Roux committed

$(PROG): $(OBJS)
	$(CC) $(CFLAGS) -o $(PROG) $(OBJS) $(LIBS)

gui/gui.a:
	cd gui && make

Cedric Roux's avatar
Cedric Roux committed
%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $<

main.o: ../T_IDs.h ../T_defs.h

clean:
	rm -f *.o $(PROG) core
	cd gui && make clean