# Makefile for svga framebuffer module
# subdir lib

include ../Makefile.inc

LIB		= libfb

OBJS		= fb.o


all:		$(LIB).a  test_lib

$(LIB).a:	$(OBJS)
		$(AR) $(ARFLAGS) $@ $(OBJS)

test_lib:	test_lib.o libfb.a libfb.h
		$(CC) $(CFLAGS) -o $@ $< libfb.a

clean:
		rm -f $(LIB).a $(OBJS) *.i *.s *~ test_lib.o test_lib core

realclean:	clean
		rm -f .depend

dep depend:
		$(CC) -E -M $(CFLAGS) *.c > .depend

#
# include a dependency file if one exists
#
ifeq (.depend,$(wildcard .depend))
include .depend
endif
