Add bpf_probe_tool/Makefile
This commit is contained in:
parent
06db195c94
commit
589e15b618
1 changed files with 17 additions and 0 deletions
17
bpf_probe_tool/Makefile
Normal file
17
bpf_probe_tool/Makefile
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
CC ?= gcc
|
||||||
|
CFLAGS ?= -O2 -Wall -Wextra -pedantic
|
||||||
|
LDFLAGS ?=
|
||||||
|
TARGET := bpf_probe_tool
|
||||||
|
|
||||||
|
.PHONY: all clean
|
||||||
|
|
||||||
|
all: $(TARGET)
|
||||||
|
|
||||||
|
$(TARGET): main.o
|
||||||
|
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
||||||
|
|
||||||
|
main.o: main.c
|
||||||
|
$(CC) $(CFLAGS) -c main.c -o main.o
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f $(TARGET) main.o
|
||||||
Loading…
Reference in a new issue