From e17bf7ed8d01e48100100d4fea02cec478bb22f9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20Mat=C4=9Bj=C3=A1k?= Date: Thu, 26 Apr 2018 19:37:27 +0200 Subject: [PATCH] doc, cleaning, no per session data --- Makefile | 21 ++++++---- html/index.html | 2 +- mtps.c => mt_ps.c | 3 +- mt_rfid.c | 68 +++++++++++-------------------- mt_rfid.h | 32 +++++++-------- mt_server.c | 61 +++++++++++++-------------- mt_server.h | 23 +++++++++-- ev_signal_exit.c => signal_exit.c | 4 +- ev_signal_exit.h => signal_exit.h | 1 + 9 files changed, 104 insertions(+), 111 deletions(-) rename mtps.c => mt_ps.c (90%) rename ev_signal_exit.c => signal_exit.c (86%) rename ev_signal_exit.h => signal_exit.h (80%) diff --git a/Makefile b/Makefile index de47755..5c1e71a 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,20 @@ -all: mt-rfid mt-server mt-ps +OUTPUT_DIR = build -mt-rfid: $(SOURCE_FILES) - $(CC) $(CFLAGS) -DIS_MAIN -o mt_rfid mt_rfid.c ev_signal_exit.c -lev -luFCoder-armhf +all: mtrfid mtserver mtps -mt-server: mt_server.c - $(CC) $(CFLAGS) -DIS_MAIN -o mt-server mt_server.c ev_signal_exit.c -lev -lwebsockets +mtrfid: mt_rfid.c + mkdir -p $(OUTPUT_DIR) + $(CC) $(CFLAGS) -DIS_MAIN -o $(OUTPUT_DIR)/mtrfid mt_rfid.c signal_exit.c -lev -luFCoder-armhf -mt-ps: mtps.c mt_rfid.c mt_server.c - $(CC) $(CFLAGS) -o mt-ps mtps.c mt_rfid.c mt_server.c ev_signal_exit.c -lev -luFCoder-armhf -lwebsockets +mtserver: mt_server.c + mkdir -p $(OUTPUT_DIR) + $(CC) $(CFLAGS) -DIS_MAIN -o $(OUTPUT_DIR)/mtserver mt_server.c signal_exit.c -lev -lwebsockets + +mtps: mt_ps.c mt_rfid.c mt_server.c + mkdir -p $(OUTPUT_DIR) + $(CC) $(CFLAGS) -o $(OUTPUT_DIR)/mtps mt_ps.c mt_rfid.c mt_server.c signal_exit.c -lev -luFCoder-armhf -lwebsockets .PHONY: clean clean: - rm -f mt-* + rm -rf $(OUTPUT_DIR) diff --git a/html/index.html b/html/index.html index e5aa108..ee76379 100644 --- a/html/index.html +++ b/html/index.html @@ -5,7 +5,7 @@