Mercurial > pub > dyncall > dyncall
annotate buildsys/nmake/tool_gcc.nmake @ 632:ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
- configure.{bat,rc} now writing Makefile.config, for consistency/compatibility (e.g. configure.bat can now be used to set up env flags for a non-nmake toolchain)
- simplified/decluttered Windows and Plan9 configure scripts (removal of unused/stale options, ...)
- removed stale test/makepkg.sh helper
author | Tassilo Philipp |
---|---|
date | Sat, 19 Nov 2022 15:45:41 +0100 |
parents | 3e629dc19168 |
children |
rev | line source |
---|---|
0 | 1 #////////////////////////////////////////////////////////////////////////////// |
2 # | |
632
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
3 # Copyright (c) 2007-2022 Daniel Adler <dadler@uni-goettingen.de>, |
0 | 4 # Tassilo Philipp <tphilipp@potion-studios.com> |
5 # | |
6 # Permission to use, copy, modify, and distribute this software for any | |
7 # purpose with or without fee is hereby granted, provided that the above | |
8 # copyright notice and this permission notice appear in all copies. | |
9 # | |
10 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
11 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
12 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
13 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
14 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
15 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
16 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
17 # | |
18 #////////////////////////////////////////////////////////////////////////////// | |
19 | |
20 #/////////////////////////////////////////////////// | |
21 # | |
22 # GCC nmake rules | |
23 # tool_gcc.nmake | |
24 # | |
25 #/////////////////////////////////////////////////// | |
26 | |
27 | |
632
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
28 CC =gcc |
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
29 CXX =g++ |
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
30 AR =ar |
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
31 AS =as |
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
32 LD =g++#ld |
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
33 OCP =objcopy |
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
34 |
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
35 |
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
36 !IF "$(BUILD_OS)" == "nds" |
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
37 |
0 | 38 CC =arm-eabi-gcc |
39 CXX =arm-eabi-g++ | |
40 AR =arm-eabi-ar | |
41 AS =arm-eabi-as | |
42 LD =arm-eabi-g++#arm-eabi-ld | |
43 OCP =arm-eabi-objcopy | |
44 | |
45 !IF "$(BUILD_ARCH)" == "arm32_thumb" | |
46 | |
632
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
47 ASFLAGS = -mthumb -mthumb-interwork |
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
48 CFLAGS = -Wall -O2 -I$(TOP)\dyncall -I$(TOP)\dyncallback -fomit-frame-pointer -ffast-math -fno-strict-aliasing -mthumb -mthumb-interwork |
0 | 49 CXXFLAGS = $(CFLAGS) -fno-rtti -fno-exceptions |
632
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
50 LDFLAGS = -mno-fpu -mthumb -mthumb-interwork |
0 | 51 ARFLAGS = |
52 | |
53 !ELSE IF "$(BUILD_ARCH)" == "arm32_arm" | |
54 | |
632
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
55 ASFLAGS = |
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
56 CFLAGS = -Wall -O2 -I$(TOP)\dyncall -I$(TOP)\dyncallback -fomit-frame-pointer -ffast-math -fno-strict-aliasing |
0 | 57 CXXFLAGS = $(CFLAGS) -fno-rtti -fno-exceptions |
632
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
58 LDFLAGS = -mno-fpu |
0 | 59 ARFLAGS = |
60 | |
61 !ENDIF | |
62 | |
63 CFLAGS = $(CFLAGS) -DARM9 -mcpu=arm9tdmi -mtune=arm9tdmi -D__nds__ -I"$(DEVKITPRO_PATH)/libnds/include" | |
64 CXXFLAGS = $(CXXFLAGS) -D__nds__ -I"$(DEVKITPRO_PATH)/libnds/include" | |
65 LDFLAGS = $(LDFLAGS) -specs=ds_arm9.specs | |
632
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
66 |
0 | 67 !ENDIF |
68 | |
69 | |
70 .SUFFIXES: | |
71 .SUFFIXES: .o .so .a .arm9 .nds .pdf .c .cpp .S .tex .cc | |
72 | |
73 | |
74 .S.o: | |
75 echo .S.o: Assembling $< ... | |
76 $(CC) $(ASFLAGS) $(CFLAGS) -o $@ -c $< | |
77 | |
78 .c.o: | |
79 echo .c.o: Compiling $< ... | |
80 $(CC) $(CFLAGS) -o $@ -c $< | |
81 | |
82 .cpp.o: | |
83 echo .cpp.o: Compiling $< ... | |
84 $(CXX) $(CXXFLAGS) -o $@ -c $< | |
85 | |
86 .cc.o: | |
87 echo .cc.o: Compiling $< ... | |
88 $(CXX) $(CXXFLAGS) -o $@ -c $< | |
89 | |
90 .tex.pdf: | |
91 pdflatex $< | |
632
ed19b429a152
- added explicit arm64 target, and clang tool options to Windows' configure.bat
Tassilo Philipp
parents:
0
diff
changeset
|
92 |