Mercurial > pub > dyncall > dyncall
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 |
rev | line source |
---|---|
0 | 1 TARGETS = test |
2 TARGET_ARCH += -arch armv6 | |
3 TARGET_ARCH += -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk | |
4 # TARGET_ARCH += -mno-thumb-interwork | |
5 # TARGET_ARCH += -mthumb-interwork | |
6 CFLAGS += -mthumb | |
7 # CFLAGS = -mthumb-interwork | |
644
f13444192ceb
- portability improvements in some test makefiles
Tassilo Philipp
parents:
0
diff
changeset
|
8 # CFLAGS_THUMB = -mthumb ${CFLAGS} |
0 | 9 # CFLAGS += -mthumb-interwork |
644
f13444192ceb
- portability improvements in some test makefiles
Tassilo Philipp
parents:
0
diff
changeset
|
10 all: ${LOADLIBES} test |
0 | 11 |
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 | 14 |
15 arm.o: arm.c | |
16 | |
17 test.o: test.c | |
18 | |
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 | 21 |
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 | 24 |
25 clean: | |
644
f13444192ceb
- portability improvements in some test makefiles
Tassilo Philipp
parents:
0
diff
changeset
|
26 ${RM} ${TARGETS} *.o |