Makefile 629 Bytes
Newer Older
1 2
CC=gcc
CFLAGS=-Wall -g -pthread -DT_TRACER -I. -I..
vettel's avatar
vettel committed
3
CFLAGS += -O3 -ffast-math -fomit-frame-pointer
4 5 6

LIBS=-lX11 -lm -lpng -lXft

Cedric Roux's avatar
Cedric Roux committed
7
all: dump_nack_signal time_meas timeplot
8 9 10 11 12

dump_nack_signal: ../utils.o ../database.o ../config.o ../event.o \
                  dump_nack_signal.o
	$(CC) $(CFLAGS) -o dump_nack_signal $^ $(LIBS)

Cedric Roux's avatar
Cedric Roux committed
13 14 15 16 17 18 19
time_meas: ../utils.o ../database.o ../config.o ../event.o \
                  time_meas.o
	$(CC) $(CFLAGS) -o time_meas $^ $(LIBS)

timplot: timeplot.o
	$(CC) $(CFLAGS) -o timeplot $^ $(LIBS)

20 21 22 23 24 25
.PHONY: all

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

clean:
Cedric Roux's avatar
Cedric Roux committed
26
	rm -f *.o core dump_nack_signal time_meas timeplot