更改目录
This commit is contained in:
parent
8ab5b8953c
commit
2cf5de044e
25
test/Makefile
Normal file
25
test/Makefile
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user