hello_pi: Add top level makefile and enable parallel build

This commit is contained in:
popcornmix
2017-09-26 14:12:46 +01:00
parent 2fe4ca33dc
commit c0e5933973
2 changed files with 44 additions and 34 deletions

View File

@@ -0,0 +1,42 @@
all: apps
libs/ilclient/libilclient.a:
$(MAKE) -C libs/ilclient
libs/vgfont/libvgfont.a:
$(MAKE) -C libs/vgfont
apps: libs/ilclient/libilclient.a libs/vgfont/libvgfont.a
$(MAKE) -C hello_world
$(MAKE) -C hello_triangle
$(MAKE) -C hello_triangle2
$(MAKE) -C hello_video
$(MAKE) -C hello_audio
$(MAKE) -C hello_font
$(MAKE) -C hello_dispmanx
$(MAKE) -C hello_tiger
$(MAKE) -C hello_encode
$(MAKE) -C hello_jpeg
$(MAKE) -C hello_videocube
$(MAKE) -C hello_teapot
$(MAKE) -C hello_fft
$(MAKE) -C hello_mmal_encode
clean:
$(MAKE) -C libs/ilclient clean
$(MAKE) -C libs/vgfont clean
$(MAKE) -C hello_world clean
$(MAKE) -C hello_triangle clean
$(MAKE) -C hello_triangle2 clean
$(MAKE) -C hello_video clean
$(MAKE) -C hello_audio clean
$(MAKE) -C hello_font clean
$(MAKE) -C hello_dispmanx clean
$(MAKE) -C hello_tiger clean
$(MAKE) -C hello_encode clean
$(MAKE) -C hello_jpeg clean
$(MAKE) -C hello_videocube clean
$(MAKE) -C hello_teapot clean
$(MAKE) -C hello_fft clean
$(MAKE) -C hello_mmal_encode clean

View File

@@ -1,34 +1,2 @@
make -C libs/ilclient clean
make -C libs/vgfont clean
make -C hello_world clean
make -C hello_triangle clean
make -C hello_triangle2 clean
make -C hello_video clean
make -C hello_audio clean
make -C hello_font clean
make -C hello_dispmanx clean
make -C hello_tiger clean
make -C hello_encode clean
make -C hello_jpeg clean
make -C hello_videocube clean
make -C hello_teapot clean
make -C hello_fft clean
make -C hello_mmal_encode clean
make -C libs/ilclient
make -C libs/vgfont
make -C hello_world
make -C hello_triangle
make -C hello_triangle2
make -C hello_video
make -C hello_audio
make -C hello_font
make -C hello_dispmanx
make -C hello_tiger
make -C hello_encode
make -C hello_jpeg
make -C hello_videocube
make -C hello_teapot
make -C hello_fft
make -C hello_mmal_encode
make clean
make -j$(nproc)