Makefile 400 Bytes
Newer Older
Cedric Roux's avatar
Cedric Roux committed
1
CC=gcc
2 3
CFLAGS=-Wall -g -pthread

4 5
CFLAGS += -O3 -ffast-math -fomit-frame-pointer

6
LIBS=-lX11 -lm
Cedric Roux's avatar
Cedric Roux committed
7 8 9 10 11 12

#comment those two lines to NOT use shared memory
CFLAGS += -DT_USE_SHARED_MEMORY
LIBS += -lrt

PROG=tracer
Cedric Roux's avatar
Cedric Roux committed
13
OBJS=main.o plot.o database.o
Cedric Roux's avatar
Cedric Roux committed
14 15 16 17 18 19 20 21 22 23 24

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

%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $<

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

clean:
	rm -f *.o $(PROG) core