Gaurav Shah | 322536d | 2010-01-28 15:01:23 -0800 | [diff] [blame] | 1 | # Copyright (c) 2010 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 | |
Gaurav Shah | fc70d72 | 2010-03-31 13:26:55 -0700 | [diff] [blame] | 5 | SRCS = rollback_index.c tlcl_stub.c utility_stub.c |
Gaurav Shah | 7ca31f3 | 2010-02-16 19:04:11 -0800 | [diff] [blame] | 6 | OBJS = $(SRCS:.c=.o) |
Gaurav Shah | fc70d72 | 2010-03-31 13:26:55 -0700 | [diff] [blame] | 7 | INCLUDES += -I./include/ |
Gaurav Shah | 322536d | 2010-01-28 15:01:23 -0800 | [diff] [blame] | 8 | |
| 9 | all: libcommon.a |
| 10 | |
| 11 | libcommon.a: $(OBJS) |
Gaurav Shah | ce0cc30 | 2010-03-24 13:48:55 -0700 | [diff] [blame] | 12 | ar rs $@ $^ |
Gaurav Shah | 322536d | 2010-01-28 15:01:23 -0800 | [diff] [blame] | 13 | |
| 14 | .c.o: $(OBJS) |
| 15 | $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ |
| 16 | |
| 17 | clean: |
| 18 | rm -f $(OBJS) libcommon.a |