aboutsummaryrefslogblamecommitdiffstats
path: root/Makefile
blob: 538406cd4d1ed5510cc8ae04de8fd95fddac27a9 (plain) (tree)



















                                                  
CC = gcc
CFLAGS = -g -Wall # -O2
INCLUDES = -I. -I/usr/local/include

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

TARGETS = trace-cmd

all: $(TARGETS)

parse-events.o::	parse-events.h
trace-read.o::		parse-events.h
trace-cmd.o::		parse-events.h

trace-cmd: trace-cmd.o trace-read.o parse-events.o
	$(CC) $^ -o $@

clean:
	$(RM) *.o *~ $(TARGETS)