##
-# Copyright (c) 2007 Apple Inc. All rights reserved.
+# Copyright (c) 2007-2009 Apple Inc. All rights reserved.
#
# @APPLE_LICENSE_HEADER_START@
#
# the mechanism for 10.4 and 10.5 is different
#
+
all-check: all check
check:
- ./main-10.4
- ./main-10.5
- ./main-10.6
- ./main-10.4.stripped
- ./main-10.5.stripped
- ./main-10.6.stripped
-
-all: main-10.4 main-10.5 main-10.6 main-10.4.stripped main-10.5.stripped main-10.6.stripped
-
-main-10.4: main.c
- ${CC} ${CCFLAGS} -I${TESTROOT}/include -o main-10.4 main.c -mmacosx-version-min=10.4
+ ./main
+ ./main.stripped
-main-10.4.stripped: main-10.4
- strip main-10.4 -o main-10.4.stripped
-
-main-10.5: main.c
- ${CC} ${CCFLAGS} -I${TESTROOT}/include -o main-10.5 main.c -mmacosx-version-min=10.5
+all: main main.stripped
-main-10.5.stripped: main-10.5
- strip main-10.5 -o main-10.5.stripped
-main-10.6: main.c
- ${CC} ${CCFLAGS} -I${TESTROOT}/include -o main-10.6 main.c -mmacosx-version-min=10.6 -nostdlib -lcrt1.10.6.o -lSystem
+main: main.c
+ ${CC} ${CCFLAGS} -I${TESTROOT}/include $(CRTLIB) -o main main.c
-main-10.6.stripped: main-10.6
- strip main-10.6 -o main-10.6.stripped
+main.stripped: main
+ ${STRIP} main -o main.stripped
clean:
- ${RM} ${RMFLAGS} *~ main-10.4 main-10.5 main-10.6 main-10.4.stripped main-10.5.stripped main-10.6.stripped
+ ${RM} ${RMFLAGS} *~ main main.stripped