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

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

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

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

$(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