xref: /linux/tools/virtio/virtio-trace/Makefile (revision b24413180f5600bcb3bb70fbed5cf186b60864bd)
1*b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2108fc825SYoshihiro YUNOMAECC = gcc
35b8fa822SYoshihiro YUNOMAECFLAGS = -O2 -Wall -pthread
4108fc825SYoshihiro YUNOMAE
5108fc825SYoshihiro YUNOMAEall: trace-agent
6108fc825SYoshihiro YUNOMAE
7108fc825SYoshihiro YUNOMAE.c.o:
85b8fa822SYoshihiro YUNOMAE	$(CC) $(CFLAGS) -c $^ -o $@
9108fc825SYoshihiro YUNOMAE
10108fc825SYoshihiro YUNOMAEtrace-agent: trace-agent.o trace-agent-ctl.o trace-agent-rw.o
115b8fa822SYoshihiro YUNOMAE	$(CC) $(CFLAGS) -o $@ $^
12108fc825SYoshihiro YUNOMAE
13108fc825SYoshihiro YUNOMAEclean:
14108fc825SYoshihiro YUNOMAE	rm -f *.o trace-agent
15