Minor changes

This commit is contained in:
Loic Guegan 2023-07-14 18:28:02 +02:00
parent 4f9aced0c3
commit d89f9840a5
3 changed files with 24 additions and 1 deletions

View file

@ -1,12 +1,18 @@
CC="gcc"
all: publisher
all: publisher client
publisher:
echo "Building publisher..."
$(MAKE) -C src/publisher/ CC=$(CC) OUT=$(PWD)
client:
echo "Building client..."
$(MAKE) -C src/client/ CC=$(CC) OUT=$(PWD)
clean:
$(MAKE) clean -C src/publisher/ CC=$(CC) OUT=$(PWD)
$(MAKE) clean -C src/client/ CC=$(CC) OUT=$(PWD)
.PHONY: clean

10
src/client/Makefile Normal file
View file

@ -0,0 +1,10 @@
EXEC=client
CFLAGS=-lzmq
all: main.c
$(CC) $^ -o $(OUT)/$(EXEC) $(CFLAGS)
clean:
rm -f $(OUT)/$(EXEC)
.PHONY: clean

7
src/client/main.c Normal file
View file

@ -0,0 +1,7 @@
int main(){
return 0;
}