Mercurial > sdl-ios-xcode
comparison build-scripts/makedep.sh @ 1521:9b9212e4810c
CFLAGS are separate from EXTRA_CFLAGS
Fixed iconv.h detection on Cygwin32
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 14 Mar 2006 02:46:26 +0000 |
parents | ce28f14c4502 |
children | 14f302c5b32c |
comparison
equal
deleted
inserted
replaced
1520:5d264facfd03 | 1521:9b9212e4810c |
---|---|
45 echo "$obj: $src \\" >>${output}.new | 45 echo "$obj: $src \\" >>${output}.new |
46 search_deps $src | sort | uniq >>${output}.new | 46 search_deps $src | sort | uniq >>${output}.new |
47 case $ext in | 47 case $ext in |
48 c) cat >>${output}.new <<__EOF__ | 48 c) cat >>${output}.new <<__EOF__ |
49 | 49 |
50 \$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) -c $src -o \$@ | 50 \$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) -c $src -o \$@ |
51 | 51 |
52 __EOF__ | 52 __EOF__ |
53 ;; | 53 ;; |
54 cc) cat >>${output}.new <<__EOF__ | 54 cc) cat >>${output}.new <<__EOF__ |
55 | 55 |
56 \$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) -c $src -o \$@ | 56 \$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) -c $src -o \$@ |
57 | 57 |
58 __EOF__ | 58 __EOF__ |
59 ;; | 59 ;; |
60 m) cat >>${output}.new <<__EOF__ | 60 m) cat >>${output}.new <<__EOF__ |
61 | 61 |
62 \$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) -c $src -o \$@ | 62 \$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) -c $src -o \$@ |
63 | 63 |
64 __EOF__ | 64 __EOF__ |
65 ;; | 65 ;; |
66 asm) cat >>${output}.new <<__EOF__ | 66 asm) cat >>${output}.new <<__EOF__ |
67 | 67 |
69 | 69 |
70 __EOF__ | 70 __EOF__ |
71 ;; | 71 ;; |
72 S) cat >>${output}.new <<__EOF__ | 72 S) cat >>${output}.new <<__EOF__ |
73 | 73 |
74 \$(LIBTOOL) --mode=compile \$(CC) -c $src -o \$@ | 74 \$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) -c $src -o \$@ |
75 | 75 |
76 __EOF__ | 76 __EOF__ |
77 ;; | 77 ;; |
78 *) echo "Unknown file extension: $ext";; | 78 *) echo "Unknown file extension: $ext";; |
79 esac | 79 esac |