Project

General

Profile

Bug #1179 » Makefile

Francis Deslauriers, 03/21/2019 02:23 PM

 
CFLAGS=-O0 -g
all: main

tp.o: tp.c tp.h
gcc -c -I. tp.c
main.o: main.c
gcc -c $(CFLAGS) main.c

main: main.o tp.o
gcc $(CFLAGS) -o main main.o tp.o -llttng-ust -ldl
clean:
rm -f main *.o

trace:
lttng create
lttng enable-event -u 'my_app:*'
lttng add-context -u -t vpid -t ip
lttng start
timeout 1 ./main || true
lttng stop
lttng view
(1-1/4)