all:
${CC} ${CCFLAGS} foo.c -c -o foo-${ARCH}.o
+ ${FAIL_IF_BAD_OBJ} foo-${ARCH}.o
${CC} ${CCFLAGS} bar.c -c -o bar-${ARCH}.o
+ ${FAIL_IF_BAD_OBJ} bar-${ARCH}.o
libtool -static foo-${ARCH}.o bar-${ARCH}.o -o libfoobar-${ARCH}.a
${CC} ${CCFLAGS} main.c -lfoobar-${ARCH} -L. -o main-${ARCH}
${FAIL_IF_BAD_MACHO} main-${ARCH}
${FAIL_IF_BAD_MACHO} main-${ARCH}
clean:
- rm -rf main-${ARCH} foo-${ARCH}.o bar-${ARCH}.o libfoobar-${ARCH}.a
-
-
+ rm -rf main-* *.o *.a