diff --git a/src/Makefile b/gl/Makefile similarity index 100% rename from src/Makefile rename to gl/Makefile diff --git a/src/README.md b/gl/README.md similarity index 100% rename from src/README.md rename to gl/README.md diff --git a/src/circle.c b/gl/circle.c similarity index 100% rename from src/circle.c rename to gl/circle.c diff --git a/src/circle.h b/gl/circle.h similarity index 100% rename from src/circle.h rename to gl/circle.h diff --git a/src/color.h b/gl/color.h similarity index 100% rename from src/color.h rename to gl/color.h diff --git a/src/fbtool.c b/gl/fbtool.c similarity index 100% rename from src/fbtool.c rename to gl/fbtool.c diff --git a/src/fbtool.h b/gl/fbtool.h similarity index 100% rename from src/fbtool.h rename to gl/fbtool.h diff --git a/src/glline.c b/gl/glline.c similarity index 100% rename from src/glline.c rename to gl/glline.c diff --git a/src/grlib.c b/gl/grlib.c similarity index 100% rename from src/grlib.c rename to gl/grlib.c diff --git a/src/line.c b/gl/line.c similarity index 100% rename from src/line.c rename to gl/line.c diff --git a/src/line.h b/gl/line.h similarity index 100% rename from src/line.h rename to gl/line.h diff --git a/src/page.h b/gl/page.h similarity index 100% rename from src/page.h rename to gl/page.h diff --git a/src/page.h.bak2 b/gl/page.h.bak2 similarity index 100% rename from src/page.h.bak2 rename to gl/page.h.bak2 diff --git a/src/point.c b/gl/point.c similarity index 100% rename from src/point.c rename to gl/point.c diff --git a/src/point.h b/gl/point.h similarity index 100% rename from src/point.h rename to gl/point.h diff --git a/src/rectangle.c b/gl/rectangle.c similarity index 100% rename from src/rectangle.c rename to gl/rectangle.c diff --git a/src/rectangle.h b/gl/rectangle.h similarity index 100% rename from src/rectangle.h rename to gl/rectangle.h diff --git a/src/vga.c b/gl/vga.c similarity index 100% rename from src/vga.c rename to gl/vga.c diff --git a/src/vga.h b/gl/vga.h similarity index 100% rename from src/vga.h rename to gl/vga.h diff --git a/src/vgagl.h b/gl/vgagl.h similarity index 100% rename from src/vgagl.h rename to gl/vgagl.h diff --git a/src/vgakeyboard.h b/gl/vgakeyboard.h similarity index 100% rename from src/vgakeyboard.h rename to gl/vgakeyboard.h diff --git a/test/Makefile b/test/Makefile new file mode 100644 index 0000000..406426e --- /dev/null +++ b/test/Makefile @@ -0,0 +1,25 @@ +srcdir = $(shell sh -c pwd) +prefix = /export/imx6/rootfs/rootfs-mx6g2c-new-nand/usr/local/test + +CC = arm-linux-gnueabihf-gcc + +objects = fbtool.o point.o line.o rectangle.o circle.o +frist:clean test +test : test.c $(objects) + $(CC) test.c $(objects) -o test_fb7 -lm +fbtool.o : page.h color.h fbtool.h fbtool.c + $(CC) -c page.h color.h fbtool.h fbtool.c +point.o : fbtool.h point.h point.c + $(CC) -c fbtool.h point.h point.c +line.o : fbtool.h point.h line.h line.c + $(CC) -c fbtool.h point.h line.h line.c +rectangle.o : fbtool.h point.h line.h rectangle.h rectangle.c + $(CC) -c fbtool.h point.h line.h rectangle.h rectangle.c +circle.o : fbtool.h point.h circle.h circle.c + $(CC) -c fbtool.h point.h circle.h circle.c -lm +.PHONY:clean install all +clean: + @rm -fv *.o *.gch test_fb7 +install: clean test + @cp -vf $(srcdir)/test_fb7 $(prefix) + @chmod 777 $(prefix)/test_fb7 \ No newline at end of file diff --git a/src/test.c b/test/test.c similarity index 100% rename from src/test.c rename to test/test.c diff --git a/src/test_fb7 b/test/test_fb7 similarity index 100% rename from src/test_fb7 rename to test/test_fb7