blob: f50a96e5c70f973a5866d6baa654d89b7468e2ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# Copyright (C) 2010 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.
OUT = $(CURDIR)
$(shell mkdir -p $(OUT))
all: $(OUT)/rootdev $(OUT)/librootdev.so.1.0
$(OUT)/rootdev: rootdev.c main.c
$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ -O2 -Wall
$(OUT)/librootdev.so.1.0: rootdev.c
$(CC) $(CFLAGS) $(LDFLAGS) -shared -fPIC \
-Wl,-soname,librootdev.so.1 $< -o $@
ln -s $(@F) $(OUT)/librootdev.so.1
ln -s $(@F) $(OUT)/librootdev.so
clean:
rm -f $(OUT)/rootdev $(OUT)/librootdev.so*
.PHONY: clean
|