From f3e26db413085505dd20f1fd6d90c148bd31c0e8 Mon Sep 17 00:00:00 2001
From: Philippe PITTOLI
Date: Mon, 19 Sep 2016 17:09:45 +0200
Subject: [PATCH] Makefile
---
remote/Makefile | 17 ++++-------------
1 file changed, 4 insertions(+), 13 deletions(-)
diff --git a/remote/Makefile b/remote/Makefile
index f618c17..d0864dc 100644
--- a/remote/Makefile
+++ b/remote/Makefile
@@ -7,25 +7,16 @@ SOURCES=$(wildcard ../lib/*.c)
OBJECTS=$(SOURCES:.c=.o)
TESTS=$(addsuffix .test, $(EXEC))
-all: tcpdserver tcpdclient
+all: $(SOURCES) $(EXEC)
$(EXEC): $(OBJECTS) $(CFILES)
- $(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) $@.c -o $@
-
-tcpdserver: tcpdserver.c tcpdserver.h
- $(CC) $(CFLAGS) $(LDFLAGS) $@.c -o $@
-
-tcpdclient: tcpdclient.c tcpdserver.h
- $(CC) $(CFLAGS) $(LDFLAGS) $@.c -o $@
+ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) $@.c -lcbor -o $@.bin
.c.o:
$(CC) -c $(CFLAGS) $< -o $@
clean:
- -rm $(OBJECTS)
+ @-rm $(OBJECTS)
mrproper: clean
- rm $(EXEC)
-
-cleantmp:
- rm /tmp/ipc/*
+ @-rm *.bin