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

Unified Diff: utils/archive/Makefile

Issue 10842002: Add the beginnings of a Dart wrapper for libarchive. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge Created 8 years, 5 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 | « .gitignore ('k') | utils/archive/archive.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/archive/Makefile
diff --git a/utils/archive/Makefile b/utils/archive/Makefile
new file mode 100644
index 0000000000000000000000000000000000000000..d4b7732ddfea98f7077b6afc35417e2b78ff5b89
--- /dev/null
+++ b/utils/archive/Makefile
@@ -0,0 +1,23 @@
+# Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+# for details. All rights reserved. Use of this source code is governed by a
+# BSD-style license that can be found in the LICENSE file.
+
+# TODO(nweiz): replace this with a .gypi file
+
+CC = gcc
+CFLAGS = -fPIC -m32 -I ../../runtime/include/ -g
+LDFLAGS = -shared -m32 -g -larchive -Wl,-soname,libdart_archive.so
+
+all: libdart_archive.so
+
+libdart_archive.so: dart_archive.o messaging.o reader.o
+ $(CC) $(LDFLAGS) -o $@ dart_archive.o messaging.o reader.o
+
+dart_archive.o: dart_archive.c dart_archive.h
+ $(CC) $(CFLAGS) -c $<
+
+messaging.o: messaging.c messaging.h dart_archive.h
+ $(CC) $(CFLAGS) -c $<
+
+reader.o: reader.c messaging.h dart_archive.h
+ $(CC) $(CFLAGS) -c $<
« no previous file with comments | « .gitignore ('k') | utils/archive/archive.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698