sock_inet
This commit is contained in:
parent
b3763ff62c
commit
7012521d08
5 changed files with 245 additions and 0 deletions
19
socket_inet/Makefile
Normal file
19
socket_inet/Makefile
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue