From 87598eb305b64b009f6ed6d690edae9947759152 Mon Sep 17 00:00:00 2001 From: Timo Dritschler Date: Fri, 25 Apr 2014 12:44:32 +0200 Subject: Small detail fix in KIRO Server Added small test program for KIRO Server and Client Updated Makefile --- Makefile | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 104ee44..4e39036 100644 --- a/Makefile +++ b/Makefile @@ -3,11 +3,12 @@ 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) +.PHONY : all all: base base: kiro-trb.o kiro-client.o kiro-server.o -kiro-cbr.o: kiro-trb.c kiro-trb.h +kiro-trb.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 @@ -17,17 +18,24 @@ kiro-server.o: kiro-server.c kiro-server.h $(CC) $(CFLAGS) $(LDFLAGS) -c kiro-server.c -o kiro-server.o +.PHONY : test +test: test-trb client server -test-trb: test - -test: kiro-trb.o test.c +test-trb: kiro-trb.o test.c $(CC) $(CFLAGS) $(LDFLAGS) test.c kiro-trb.o -o test-trb +client: kiro-client.o test-client.c + $(CC) $(CFLAGS) $(LDFLAGS) test-client.c kiro-client.o -o client -clean: - rm -f *.o test-trb +server: kiro-server.o test-server.c + $(CC) $(CFLAGS) $(LDFLAGS) test-server.c kiro-server.o -o server +.PHONY : clean +clean: + rm -f *.o test-trb client server + +.PHONY : rebuild rebuild: clean all -- cgit v1.2.3