diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2023-07-14 20:08:36 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2023-07-14 20:08:36 +0200 |
| commit | 5f4d586aca4b5e802e2d18d527ee0b0a4e2f884c (patch) | |
| tree | e39c303230a5a09d48377f7074f0857bc85cf837 /src/publisher | |
| parent | e0440fc811bafd9c72b5c85b4d3d59dd8c629027 (diff) | |
Minor changes
Diffstat (limited to 'src/publisher')
| -rw-r--r-- | src/publisher/Makefile | 7 | ||||
| -rw-r--r-- | src/publisher/main.c | 7 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/publisher/Makefile b/src/publisher/Makefile index 57eccb9..49bf5ea 100644 --- a/src/publisher/Makefile +++ b/src/publisher/Makefile @@ -1,8 +1,13 @@ +include $(CONF) EXEC=publisher CFLAGS+=-lzmq +DEFINES=\ +-DPUBLISHER_PORT=$(PUBLISHER_PORT) \ +-DPUBLISHER_ADDR=$(PUBLISHER_ADDR) + all: main.c - $(CC) $^ -o $(OUT)/$(EXEC) $(CFLAGS) + $(CC) $^ -o $(OUT)/$(EXEC) $(CFLAGS) $(DEFINES) clean: rm -f $(OUT)/$(EXEC) diff --git a/src/publisher/main.c b/src/publisher/main.c index 817d79f..001df66 100644 --- a/src/publisher/main.c +++ b/src/publisher/main.c @@ -6,12 +6,7 @@ #include <assert.h> #include <time.h> -#define STR(symbol) #symbol -#define STRINGIFY(symbol) STR(symbol) - -#ifndef PUBLISHER_PORT -#error PUBLISHER_PORT macro undefined -#endif +#include "../utils.h" int main (void) { |
