annotate test/hacking-arm-thumb-interwork/Makefile.darwin @ 663:127b569978cc default tip

- another tweak handling clang trying to be too smart (see last commit)
author Tassilo Philipp
date Sun, 24 Mar 2024 13:52:44 +0100
parents f13444192ceb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
1 TARGETS = test
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
2 TARGET_ARCH += -arch armv6
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
3 TARGET_ARCH += -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
4 # TARGET_ARCH += -mno-thumb-interwork
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
5 # TARGET_ARCH += -mthumb-interwork
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
6 CFLAGS += -mthumb
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
7 # CFLAGS = -mthumb-interwork
644
f13444192ceb - portability improvements in some test makefiles
Tassilo Philipp
parents: 0
diff changeset
8 # CFLAGS_THUMB = -mthumb ${CFLAGS}
0
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
9 # CFLAGS += -mthumb-interwork
644
f13444192ceb - portability improvements in some test makefiles
Tassilo Philipp
parents: 0
diff changeset
10 all: ${LOADLIBES} test
0
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
11
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
12 thumb.o: thumb.c
644
f13444192ceb - portability improvements in some test makefiles
Tassilo Philipp
parents: 0
diff changeset
13 ${CC} -c ${CPPFLAGS} ${CFLAGS} ${TARGET_ARCH} -mthumb $< -o $@
0
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
14
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
15 arm.o: arm.c
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
16
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
17 test.o: test.c
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
18
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
19 test: test.o thumb.o arm.o
644
f13444192ceb - portability improvements in some test makefiles
Tassilo Philipp
parents: 0
diff changeset
20 ${LINK.o} $^ ${OUTPUT_OPTION}
0
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
21
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
22 %.s: %.c
644
f13444192ceb - portability improvements in some test makefiles
Tassilo Philipp
parents: 0
diff changeset
23 ${CC} -S ${CPPFLAGS} ${CFLAGS} ${TARGET_ARCH} $< -o $@
0
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
24
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
25 clean:
644
f13444192ceb - portability improvements in some test makefiles
Tassilo Philipp
parents: 0
diff changeset
26 ${RM} ${TARGETS} *.o