##
##  Beeweeb Makefile.
##
##
##


##
##  Inherited Makefile options.
##
##	CC,CFLAGS


##
##  Makefile variables
##


include ../../../../Makefile.include

LIBNAME    = mod_default.so
SRCSNAME   = ../mod_default.c
INCD 	   = ../mod_default.h
SRCSDIR    = ../
OBJS 	   = mod_default.o

##
##  Target section
##


all : module

module: $(OBJS)
	$(CC) $(SHAREDOPT) -o $(LIBNAME) $(OBJS) ../$(UTILOBJ) $(LIB)

clean:
	$(RM) $(OBJS) $(LIBNAME)

install:
	$(CP) $(LIBNAME) $(ILIBDIR)/$(LIBNAME)
	$(CHMOD) $(IFLAGLIB) $(ILIBDIR)/$(LIBNAME)

$(OBJS): $(SRCS) $(INCD) ../$(UTILOBJ) ../../../include/*.h
	$(CC) $(CFLAGS) $(PICOPT) $(OPTIMOPT) $(EXTFLAGS) $(SRCSDIR)$*.c -o  $*.o
	
