# OS/2 Makefile

CC=gcc.exe
CFLAGS=-Zexe -Zcrtdll -Zstack 0x400
INCL=-I../include -I../port/os2/include
LIBS=../lib/libbind.a ../port/os2/ibmtcp.a -lsocket

PRG=irs_testclient irs_testserver test_cidr irs_testirpd test_getaddr

#PRG= irs_testclient

all:
	for x in ${PRG}; do \
		${CC} ${INCL} -c -O2 $$x.c ; \
		${CC} ${CFLAGS} -o $$x $$x.o ${LIBS} ; \
	done

clean:
	rm *.o
	for i in ${PRG}; do \
		rm $$i ; \
	done



