include ../../build/cyborn.mk


#            font.o \
#            pixmap.o \

#separate functions into individual files so that during linking only the
# needed files are linked in - saves space

OBJFILES =  lcd_row.o \
            gfx_masks.o \
            gfx_pixmap_blit.o \
            gfx_sprite_bounce.o \
            gfx_pixel.o \
            gfx_circle.o \
            gfx_hline.o \
            gfx_line.o \
            gfx_box.o \
            gfx_font1.o \
            gfx_rect.o \
            gfx_vline.o \
            rect.o \
            lcd_area.o \
            lcd_pallet.o \
            lcd_scroll.o \
            lcd_contrast.o \
            lcd_display.o \
            lcd_clear.o \
            surface_background.o \
            surface_foreground.o \
            surface_blit.o \
            surface_clear.o \
            surface_create.o \
            surface_destroy.o \
            surface_display.o \
            surface_rect.o \


libgfx.a: $(OBJFILES) makefile
	$(TOOLPATH)ar.exe -rcs $@ $(OBJFILES)
	cp $@ $(LIBPATH)

clean:
	rm $(OBJFILES)

cleanall:
	rm $(OBJFILES) libgfx.a


