1 # Copyright (c) 2012 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. 4 5 CFLAGS = 6 LDFLAGS = 7 8 SRC_OK = ok.c 9 SRC_FAIL = fail.c 10 SRC_OPEN = open.c 11 12 TARGET_OK = ../ok 13 TARGET_FAIL = ../fail 14 TARGET_OPEN = ../open 15 16 all: $(TARGET_OK) $(TARGET_FAIL) $(TARGET_OPEN) 17 18 $(TARGET_OK): $(SRC_OK) 19 $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) 20 21 $(TARGET_FAIL): $(SRC_FAIL) 22 $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) 23 24 $(TARGET_OPEN): $(SRC_OPEN) 25 $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) 26 27 clean: 28 $(RM) $(TARGET_OK) 29 $(RM) $(TARGET_FAIL) 30 $(RM) $(TARGET_OPEN) 31