add client-p2

This commit is contained in:
eddyem
2018-06-18 13:29:50 +03:00
parent e05dab6d7d
commit 26075401b4
7 changed files with 2029 additions and 0 deletions

22
client-p2/Makefile Normal file
View File

@@ -0,0 +1,22 @@
PROGRAM = p2_move
LDFLAGS = -lpthread -lcrypt
SRCS = $(wildcard *.c)
CC = gcc
DEFINES = -D_XOPEN_SOURCE=601
CXX = gcc
CFLAGS = -Wall -Werror $(DEFINES)
OBJS = $(SRCS:.c=.o)
all : $(PROGRAM) clean
$(PROGRAM) : $(OBJS)
$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) -o $(PROGRAM)
# some addition dependencies
# %.o: %.c
# $(CC) $(LDFLAGS) $(CFLAGS) $< -o $@
#$(SRCS) : %.c : %.h $(INDEPENDENT_HEADERS)
# @touch $@
clean:
/bin/rm -f *.o *~
depend:
$(CXX) -MM $(CXX.SRCS)