Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 32 lines (23 sloc) 1.385 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
CLANG=/Developer/usr/bin/clang
CC=$(CLANG)
CFLAGS+=-std=c99 -g -Werror -Wmissing-field-initializers -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wshadow -Wsign-compare -Wnewline-eof -Wshorten-64-to-32 -Wundeclared-selector -Wmissing-prototypes -Wformat -Wunknown-pragmas
LDFLAGS+=-framework Foundation

all: testparser unparse-weekdate unparse-ordinaldate unparse-date
test: all parser-test unparser-test
analysis: ISO8601DateFormatter-analysis.plist

parser-test: testparser testparser.sh
./testparser.sh
unparser-test: testunparser.sh unparse-weekdate unparse-ordinaldate unparse-date
./testunparser.sh > testunparser.out
diff -qs test_files/testunparser-expected.out testunparser.out

.PHONY: all test analysis parser-test unparser-test

testparser: testparser.o ISO8601DateFormatter.o

testparser.sh: testparser.sh.in
python testparser.sh.py

unparse-weekdate: unparse-weekdate.o ISO8601DateFormatter.o ISO8601DateFormatter.o
unparse-ordinaldate: unparse-ordinaldate.o ISO8601DateFormatter.o ISO8601DateFormatter.o
unparse-date: unparse-date.o ISO8601DateFormatter.o ISO8601DateFormatter.o

testunparsewithtime: testunparsewithtime.o ISO8601DateFormatter.o

ISO8601DateFormatter-analysis.plist: ISO8601DateFormatter.m
$(CLANG) $^ --analyze -o /dev/null

timetrial: timetrial.o ISO8601DateFormatter.o
Something went wrong with that request. Please try again.