1 # Copyright 2016 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 GRALLOCTEST = gralloctest
6 SOURCES += gralloctest.c
8 CCFLAGS += -g -O2 -Wall -fPIE
9 LIBS += -lhardware -lsync -lcutils -pie
11 OBJS = $(foreach source, $(SOURCES), $(addsuffix .o, $(basename $(source))))
13 OBJECTS = $(addprefix $(TARGET_DIR), $(notdir $(OBJS)))
14 BINARY = $(addprefix $(TARGET_DIR), $(GRALLOCTEST))
27 $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBS)
30 $(CC) $(CFLAGS) -c $^ -o $@ -MMD