2010-07-24 10:44:19 +00:00
|
|
|
include ../config.mk
|
|
|
|
|
2009-02-05 21:08:46 +00:00
|
|
|
NAME=r_io
|
2010-07-21 23:14:13 +00:00
|
|
|
DEPS=r_lib r_util r_socket
|
2009-08-22 03:11:33 +00:00
|
|
|
CFLAGS+=-Wall -DCORELIB
|
2010-07-24 10:44:19 +00:00
|
|
|
# on solaris only
|
|
|
|
ifeq (${OSTYPE},solaris)
|
|
|
|
LDFLAGS+=-lsocket
|
|
|
|
endif
|
|
|
|
# windows
|
|
|
|
ifeq (${OSTYPE},windows)
|
|
|
|
LDFLAGS+=-lws2_32
|
|
|
|
endif
|
2009-08-22 03:11:33 +00:00
|
|
|
|
2010-08-08 17:03:51 +00:00
|
|
|
# copypasted from socket/Makefile
|
|
|
|
# on solaris only
|
|
|
|
ifeq (${OSTYPE},solaris)
|
|
|
|
LDFLAGS+=-lsocket
|
|
|
|
endif
|
|
|
|
# windows
|
|
|
|
ifeq (${OSTYPE},windows)
|
|
|
|
LDFLAGS=-lwsock32
|
|
|
|
endif
|
|
|
|
|
2009-08-22 03:11:33 +00:00
|
|
|
|
2009-08-22 04:54:41 +00:00
|
|
|
STATIC_OBJS=
|
2009-08-22 03:11:33 +00:00
|
|
|
include ../config.mk
|
2010-01-15 00:56:43 +00:00
|
|
|
|
|
|
|
foo: pre libr_io.${EXT_SO} libr_io.${EXT_AR} tests plugins
|
|
|
|
|
2009-08-22 04:54:41 +00:00
|
|
|
include ${STATIC_IO_PLUGINS}
|
2009-08-22 03:11:33 +00:00
|
|
|
STATIC_OBJS=$(subst ..,p/..,$(subst io_,p/io_,$(STATIC_OBJ)))
|
2010-05-26 16:25:35 +00:00
|
|
|
OBJ=${STATIC_OBJS} io.o plugin.o map.o section.o desc.o cache.o undo.o
|
2009-08-22 03:11:33 +00:00
|
|
|
|
|
|
|
pre:
|
|
|
|
@echo STATICOBJS: ${STATIC_OBJS}
|
2010-01-15 12:02:54 +00:00
|
|
|
@if [ ! -e libr_io.${EXT_SO} ]; then rm -f ${STATIC_OBJS} ; fi
|
2009-08-22 03:11:33 +00:00
|
|
|
|
|
|
|
tests:
|
|
|
|
cd t && ${MAKE} all
|
|
|
|
|
|
|
|
plugins:
|
|
|
|
cd p && ${MAKE} all
|
2009-02-05 21:08:46 +00:00
|
|
|
|
|
|
|
include ../rules.mk
|