android_external_minigbm/cros_gralloc/gralloc0/tests/Makefile
Gurchetan Singh b57dffc618 minigbm: move gralloctest to this repo
The autotest eclass has issues when compiling for multilib, and plus
we can keep the test with the source code.

BUG=b:63610343
TEST=emerge-eve arc-cros-gralloc
CQ-DEPEND=CL:699675, CL:699734

Change-Id: I9ec3185f7e18f4717ef560e599e635f03b0a999d
Reviewed-on: https://chromium-review.googlesource.com/699676
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
2017-10-10 05:31:01 -07:00

30 lines
694 B
Makefile

# Copyright 2016 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
GRALLOCTEST = gralloctest
SOURCES += gralloctest.c
CCFLAGS += -g -O2 -Wall -fPIE
LIBS += -lhardware -lsync -lcutils -pie
OBJS = $(foreach source, $(SOURCES), $(addsuffix .o, $(basename $(source))))
OBJECTS = $(addprefix $(TARGET_DIR), $(notdir $(OBJS)))
BINARY = $(addprefix $(TARGET_DIR), $(GRALLOCTEST))
.PHONY: all clean
all: $(BINARY)
$(BINARY): $(OBJECTS)
clean:
$(RM) $(BINARY)
$(RM) $(OBJECTS)
$(BINARY):
$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
$(TARGET_DIR)%.o: %.c
$(CC) $(CFLAGS) -c $^ -o $@ -MMD