# directories we need to know
PKGDIR        ?= ../..
L4DIR         ?= $(PKGDIR)/../..

SYSTEMS        = x86-l4v2 x86-l4x0

ARPING 		= ore_test_arping
MONITOR		= arping_monitor

ifeq ($(SENSOR), 1)
	CFLAGS				+= -DSENSOR=1
	LIBS_$(ARPING)		+= -lferret_client -lferret_producer -lferret_util
	TARGET				= $(ARPING) $(MONITOR)
else
	TARGET				= $(ARPING)
endif


SRC_C_$(ARPING)		= main.c 
SRC_C_$(MONITOR)	= arping_monitor.c

CLIENTIDL_$(ARPING) 	= ore_rxtx.idl ore_manager.idl
LIBS_$(ARPING)	 		+= -lore -lparsecmdline -ldm_phys

LIBS_$(MONITOR)	+= -lparsecmdline -lferret_monitor -lferret_consumer -lferret_util	\
					-luip_ore -lore 

CXXFLAGS	= -fno-rtti -fno-exceptions -nostdinc++

DEFAULT_RELOC  = 0x00980000

include $(L4DIR)/mk/prog.mk
