# CC              = mips-uclibc-gcc
CC	= $(CROSS_COMPILE)gcc
COPT            = -O2
INCS = -I$(TOP_USERS_DIR)/include
CFLAGS          = ${COPT} $(INCS)
LDFLAGS         =
# STRIP           = mips-uclibc-strip
STRIP	= $(CROSS_COMPILE)strip


all:  aeUdpClient aseUdpServer

aeUdpClient: wapi.o client.o
	$(CC) -o $@ $^ $(LDFLAGS)
	$(STRIP) $@

aseUdpServer: wapi.o server.o
	$(CC) -o $@ $^ $(LDFLAGS)
	$(STRIP) $@

wapi.o: wapi.h wapi.c

client.o: wapi.h wapitest.h client.c

server.o: wapi.h server.c

clean:
	rm -f *.o aeUdpClient aseUdpServer

