Carsten Bormann | 64e2b52 | 2015-02-17 18:52:34 +0100 | [diff] [blame^] | 1 | all: size test |
| 2 | env MallocStackLogging=true ./test >new.out |
| 3 | -diff new.out expected.out |
| 4 | |
| 5 | test: test.c cbor.h cn-cbor.h cn-cbor.c |
| 6 | clang cn-cbor.c test.c -o test |
| 7 | |
| 8 | size: cn-cbor.o |
| 9 | size cn-cbor.o |
| 10 | size -m cn-cbor.o |
| 11 | |
| 12 | cn-cbor.o: cn-cbor.c cn-cbor.h cbor.h |
| 13 | clang -I /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/include -arch armv7 -Os -c cn-cbor.c |
| 14 | |
| 15 | cn-cbor-play.zip: Makefile cbor.h cn-cbor.c cn-cbor.h expected.out test.c |
| 16 | zip $@ $^ |