dist intro client/server code

This commit is contained in:
Remzi Arpaci-Dusseau
2019-05-30 12:32:20 -05:00
parent acd67a3a42
commit 7f7c16cd40
6 changed files with 199 additions and 0 deletions

20
dist-intro/Makefile Normal file
View File

@@ -0,0 +1,20 @@
CC := gcc
CFLAGS := -Wall -Werror
SRCS := client.c \
server.c
OBJS := ${SRCS:c=o}
PROGS := ${SRCS:.c=}
.PHONY: all
all: ${PROGS}
${PROGS} : % : %.o Makefile
${CC} $< -o $@ udp.c
clean:
rm -f ${PROGS} ${OBJS}
%.o: %.c Makefile
${CC} ${CFLAGS} -c $<