blob: 26e4da3e75e548f9abb21a3fddfdf3b1e5283f4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
CC=gcc
CFLAGS=-std=c99 -Wall -g -gdwarf-2 $(shell pkg-config --cflags gobject-2.0)
LDFLAGS= -lrdmacm -libverbs -lpthread $(shell pkg-config --libs gobject-2.0)
all: base
base: kiro-trb.o kiro-client.o
kiro-cbr.o: kiro-trb.c kiro-trb.h
$(CC) $(CFLAGS) $(LDFLAGS) -c kiro-trb.c -o kiro-trb.o
kiro-client.o: kiro-client.c kiro-client.h
$(CC) $(CFLAGS) $(LDFLAGS) -c kiro-client.c -o kiro-client.o
test-trb: test
test: kiro-trb.o test.c
$(CC) $(CFLAGS) $(LDFLAGS) test.c kiro-trb.o -o test-trb
clean:
rm -f *.o test-trb
rebuild: clean all
|