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 $< |