xref: /OK3568_Linux_fs/kernel/tools/virtio/virtio-trace/Makefile (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0
2*4882a593SmuzhiyunCC = gcc
3*4882a593SmuzhiyunCFLAGS = -O2 -Wall -pthread
4*4882a593Smuzhiyun
5*4882a593Smuzhiyunall: trace-agent
6*4882a593Smuzhiyun
7*4882a593Smuzhiyun.c.o:
8*4882a593Smuzhiyun	$(CC) $(CFLAGS) -c $^ -o $@
9*4882a593Smuzhiyun
10*4882a593Smuzhiyuntrace-agent: trace-agent.o trace-agent-ctl.o trace-agent-rw.o
11*4882a593Smuzhiyun	$(CC) $(CFLAGS) -o $@ $^
12*4882a593Smuzhiyun
13*4882a593Smuzhiyunclean:
14*4882a593Smuzhiyun	rm -f *.o trace-agent
15