###
#   for POS
###
CC = cc
CFLAGS = -g
LIB= -lpthread -lxnet

all: s_sock1 c_sock s_sock2

s_sock2: s_sock2.c inet.h
	cc ${CFLAGS} -o s_sock2 s_sock2.c ${LIB}

c_sock: c_sock.c inet.h
	${CC} ${CFLAGS} c_sock.c -o c_sock  ${LIB}

s_sock1: s_sock1.c inet.h
	cc ${CFLAGS} -o s_sock1 s_sock1.c ${LIB}

clean:
	rm -f c_sock s_sock1 s_sock2 core

2.7:
	cp Makefile_2.7 Makefile
	cp inet.h_2.7 inet.h
	make
linux:
	cp Makefile_Lin Makefile
	cp inet.h_Lin inet.h
	make

pos:
	make


