Unix sockets demo

This commit is contained in:
Imbus 2025-06-25 07:24:39 +02:00
parent e07b9a5eff
commit 1a505c032e
5 changed files with 234 additions and 0 deletions

19
socket/Makefile Normal file
View file

@ -0,0 +1,19 @@
CC ?= gcc
CFLAGS ?= -Wall -g
all: server.elf client.elf
server.elf: server.c
client.elf: client.c
%.elf: %.c
@echo CC $@
@$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
test: all
bash test.sh
clean:
rm -f *.elf *.o
.PHONY: test clean