Makefile 246 B

1234567891011121314
  1. # SPDX-License-Identifier: GPL-2.0
  2. CC = gcc
  3. CFLAGS = -O2 -Wall -pthread
  4. all: trace-agent
  5. .c.o:
  6. $(CC) $(CFLAGS) -c $^ -o $@
  7. trace-agent: trace-agent.o trace-agent-ctl.o trace-agent-rw.o
  8. $(CC) $(CFLAGS) -o $@ $^
  9. clean:
  10. rm -f *.o trace-agent