OLD | NEW |
| 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. |
1 | 4 |
2 rootdev : rootdev.c | 5 all: rootdev librootdev.so.1.0 |
3 | 6 |
4 .PHONY: clean clobber | 7 rootdev: rootdev.c main.c |
5 clean clobber: | 8 » $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ -O2 -Wall |
6 » rm -f rootdev | 9 |
| 10 librootdev.so.1.0: rootdev.c |
| 11 » $(CC) $(CFLAGS) $(LDFLAGS) -shared -fPIC \ |
| 12 -Wl,-soname,librootdev.so.1 $< -o $@ |
| 13 » ln -s $@ librootdev.so.1 |
| 14 » ln -s $@ librootdev.so |
| 15 |
| 16 clean: |
| 17 » rm -f rootdev librootdev.so* |
| 18 |
| 19 .PHONY: clean |
OLD | NEW |