From cc77b83644be482af80c4f66829e58856d42d706 Mon Sep 17 00:00:00 2001 From: "Diaz de Grenu, Jose" Date: Wed, 28 Jun 2017 14:02:05 +0200 Subject: [PATCH] dey-examples-opengles: add LDFLAGS and clean target This avoids the following errors: ERROR: dey-examples-opengles-1.0-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary and when cleaning: ERROR: dey-examples-opengles-1.0-r0 do_configure: oe_runmake failed | make: *** No rule to make target 'clean'. Stop. Signed-off-by: Diaz de Grenu, Jose --- .../dey-examples-opengles/ccimx6/opengles/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-opengles/ccimx6/opengles/Makefile b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-opengles/ccimx6/opengles/Makefile index ea8c73bbc..96f8d2942 100644 --- a/meta-digi-dey/recipes-digi/dey-examples/dey-examples-opengles/ccimx6/opengles/Makefile +++ b/meta-digi-dey/recipes-digi/dey-examples/dey-examples-opengles/ccimx6/opengles/Makefile @@ -15,13 +15,16 @@ endif all: $(BINARIES) -es11_example: fsl_egl.o fslutil.o glu3.o - $(CC) $(CFLAGS) $^ -lm -lEGL -lGLESv1_CM $(X11LIBS) $@.c -o $@ +es11_example: es11_example.o fsl_egl.o fslutil.o glu3.o + $(CC) $(LDFLAGS) $^ -lm -lEGL -lGLESv1_CM $(X11LIBS) -o $@ -es20_example: fsl_egl.o fslutil.o - $(CC) $(CFLAGS) $^ -lm -lEGL -lGLESv2 $(X11LIBS) $@.c -o $@ +es20_example: es20_example.o fsl_egl.o fslutil.o + $(CC) $(LDFLAGS) $^ -lm -lEGL -lGLESv2 $(X11LIBS) -o $@ install: $(BINARIES) -mkdir -p $(DEST_DIR)/opt/dey-examples-opengles install -m 0755 $^ $(DEST_DIR)/opt/dey-examples-opengles install -m 0644 texture.bmp $(DEST_DIR)/opt/dey-examples-opengles + +clean: + -rm -f *.o $(BINARIES)