# these are here mostly for testing purposes.  these flags should be 
# passed in from the make used to compile the yabbs client.
CFLAGS=-Wall -g
SERVER="localhost"
LOCALETC="/usr/local/etc"
DEFINES=-DSERVER='$(SERVER)' -DLOCALETC='$(LOCALETC)'
INTERFACEOBJ=socket.o

libyabbs.a: yabbslib.o $(INTERFACEOBJ)
	-rm libyabbs.a
	ar cq libyabbs.a yabbslib.o $(INTERFACEOBJ)
	ranlib libyabbs.a

.c.o: yabbslib.h network.h
	$(CC) $(CFLAGS) $(DEFINES) -c $<

# used for WATCP MSDOS port.  change the below paths if you have djgpp and
# tcplib installed elsewhere
wasocket.c: /djgpp/tcpsys/socket.c
	copy \djgpp\tcpsys\socket.c wasocket.c

clean:
	-rm *.o *.a wasocket.c
