diff options
| author | Thomas Schmucker <ts@its1.de> | 2024-11-02 09:59:52 +0100 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2024-11-02 09:59:52 +0100 |
| commit | f15530cbfa7b2e344844a36e1a199301a81b6383 (patch) | |
| tree | 7d2c1276f53446f62e006ac64cbfe833492e61ba | |
| parent | 0984a86f9243a8147b8f02882af6380ee5bff22e (diff) | |
| download | use-mosquitto-f15530cbfa7b2e344844a36e1a199301a81b6383.tar.gz use-mosquitto-f15530cbfa7b2e344844a36e1a199301a81b6383.tar.bz2 use-mosquitto-f15530cbfa7b2e344844a36e1a199301a81b6383.zip | |
rename: subscribe
| -rw-r--r-- | makefile | 11 | ||||
| -rw-r--r-- | src/subscribe.c (renamed from src/main.c) | 0 |
2 files changed, 5 insertions, 6 deletions
| @@ -1,17 +1,16 @@ | |||
| 1 | include config.mk | 1 | include config.mk |
| 2 | 2 | ||
| 3 | BINARY=bin/client | 3 | SUBSCRIBE=bin/subscribe |
| 4 | 4 | ||
| 5 | SRC_FILES=$(wildcard src/*.c) | 5 | SUBSCRIBE_OBJ_FILES=obj/subscribe.o obj/mqtt.o |
| 6 | OBJ_FILES=$(patsubst src/%.c,obj/%.o,$(SRC_FILES)) | ||
| 7 | 6 | ||
| 8 | release: $(BINARY) | 7 | release: $(SUBSCRIBE) |
| 9 | release: CFLAGS+=-DNDEBUG -O2 | 8 | release: CFLAGS+=-DNDEBUG -O2 |
| 10 | 9 | ||
| 11 | debug: $(BINARY) | 10 | debug: $(SUBSCRIBE) |
| 12 | debug: CFLAGS+=-g | 11 | debug: CFLAGS+=-g |
| 13 | 12 | ||
| 14 | $(BINARY): $(OBJ_FILES) | bin | 13 | $(SUBSCRIBE): $(SUBSCRIBE_OBJ_FILES) | bin |
| 15 | cc $(LDFLAGS) $^ -o $@ | 14 | cc $(LDFLAGS) $^ -o $@ |
| 16 | 15 | ||
| 17 | obj/%.o: src/%.c src/config.h | obj | 16 | obj/%.o: src/%.c src/config.h | obj |
diff --git a/src/main.c b/src/subscribe.c index 82e7606..82e7606 100644 --- a/src/main.c +++ b/src/subscribe.c | |||
