mirror of
https://gitlab.com/manzerbredes/ina260-zmq-publisher.git
synced 2025-04-06 03:46:25 +02:00
Minor changes
This commit is contained in:
parent
5f4d586aca
commit
31fd7f1f9b
4 changed files with 32 additions and 3 deletions
12
Makefile
12
Makefile
|
@ -3,7 +3,7 @@ include $(CONF)
|
|||
CC="gcc"
|
||||
CFLAGS=
|
||||
|
||||
all: publisher client
|
||||
all: publisher client logger
|
||||
|
||||
publisher:
|
||||
@echo "---------- Building publisher..."
|
||||
|
@ -15,9 +15,15 @@ client:
|
|||
CFLAGS=$(CFLAGS) \
|
||||
$(MAKE) -C src/client/ CC=$(CC) OUT=$(PWD) CONF=$(CONF)
|
||||
|
||||
logger:
|
||||
@echo "---------- Building client..."
|
||||
CFLAGS=$(CFLAGS) \
|
||||
$(MAKE) -C src/logger/ CC=$(CC) OUT=$(PWD) CONF=$(CONF)
|
||||
|
||||
|
||||
clean:
|
||||
$(MAKE) clean -C src/publisher/ CC=$(CC) OUT=$(PWD)
|
||||
$(MAKE) clean -C src/client/ CC=$(CC) OUT=$(PWD)
|
||||
$(MAKE) clean -C src/publisher/
|
||||
$(MAKE) clean -C src/client/
|
||||
$(MAKE) clean -C src/logger/
|
||||
|
||||
.PHONY: clean publisher client
|
||||
|
|
BIN
logger
Executable file
BIN
logger
Executable file
Binary file not shown.
10
src/logger/Makefile
Normal file
10
src/logger/Makefile
Normal file
|
@ -0,0 +1,10 @@
|
|||
include $(CONF)
|
||||
EXEC=logger
|
||||
|
||||
all: main.c
|
||||
$(CC) $^ -o $(OUT)/$(EXEC) $(CFLAGS)
|
||||
|
||||
clean:
|
||||
rm -f $(OUT)/$(EXEC)
|
||||
|
||||
.PHONY: clean
|
13
src/logger/main.c
Normal file
13
src/logger/main.c
Normal file
|
@ -0,0 +1,13 @@
|
|||
// Weather update client
|
||||
// Connects SUB socket to tcp://localhost:5556
|
||||
// Collects weather updates and finds avg temp in zipcode
|
||||
#include <zmq.h>
|
||||
#include <assert.h>
|
||||
#include <time.h>
|
||||
#include <string.h>
|
||||
|
||||
int main (int argc, char *argv [])
|
||||
{
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Reference in a new issue