Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Unified Diff: Makefile

Issue 3141038: rootdev: fix -d, add -c and -r. ifdefs for so use (Closed) Base URL: http://src.chromium.org/git/rootdev.git
Patch Set: integrated feedback; added functional tests Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LICENSE ('k') | README.chromium » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Makefile
diff --git a/Makefile b/Makefile
index 873a392b9c939f32dff94cc05135a11653752a65..75d070217211f4766d6d7f70cbae598a8e088c9a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,19 @@
+# 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.
-rootdev : rootdev.c
+all: rootdev librootdev.so.1.0
-.PHONY: clean clobber
-clean clobber:
- rm -f rootdev
+rootdev: rootdev.c main.c
+ $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ -O2 -Wall
+
+librootdev.so.1.0: rootdev.c
+ $(CC) $(CFLAGS) $(LDFLAGS) -shared -fPIC \
+ -Wl,-soname,librootdev.so.1 $< -o $@
+ ln -s $@ librootdev.so.1
+ ln -s $@ librootdev.so
+
+clean:
+ rm -f rootdev librootdev.so*
+
+.PHONY: clean
« no previous file with comments | « LICENSE ('k') | README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698