ifndef ROOT
	ROOT = ../..
endif

include         $(ROOT)/config.mak

INCLDIR		= $(ROOT)/INCLUDE
LIBDIR		= $(ROOT)/LIB
BINS		= sima wireless
#------------------------------------------------------------------------------

CFLAGS		+= $(OPTFLAGS) -I. -I$(INCLDIR)
LDFLAGS		= -L$(LIBDIR)
LIBS		= -lartis_static -lpthread -lm
LDFLAGS		+= $(LIBS)
#------------------------------------------------------------------------------

ifeq ($(ARCHITEC), BLUEGENE)
	DEFS	= -DBLUEGENE
endif

#------------------------------------------------------------------------------

all:	$(BINS) 



.c:
	$(CC) -o $@ $(CFLAGS) $< $(LDFLAGS) 
#------------------------------------------------------------------------------



clean :
	rm -f  $(BINS) *.o *~ 
	rm -f  *.out *.err  

cleanall : clean 
	rm -f  Migrazioni.txt *.res 
#------------------------------------------------------------------------------
