OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a |
| 3 # BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 # TODO(nweiz): replace this with a .gypi file |
| 6 |
| 7 CC = gcc |
| 8 CFLAGS = -fPIC -m32 -I ../../runtime/include/ -g |
| 9 LDFLAGS = -shared -m32 -g -larchive -Wl,-soname,libdart_archive.so |
| 10 |
| 11 all: libdart_archive.so |
| 12 |
| 13 libdart_archive.so: dart_archive.o messaging.o reader.o |
| 14 $(CC) $(LDFLAGS) -o $@ dart_archive.o messaging.o reader.o |
| 15 |
| 16 dart_archive.o: dart_archive.c dart_archive.h |
| 17 $(CC) $(CFLAGS) -c $< |
| 18 |
| 19 messaging.o: messaging.c messaging.h dart_archive.h |
| 20 $(CC) $(CFLAGS) -c $< |
| 21 |
| 22 reader.o: reader.c messaging.h dart_archive.h |
| 23 $(CC) $(CFLAGS) -c $< |
OLD | NEW |