comparison 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
comparison
equal deleted inserted replaced
631:e5ad8cf0aa72 632:ed19b429a152
1 #////////////////////////////////////////////////////////////////////////////// 1 #//////////////////////////////////////////////////////////////////////////////
2 # 2 #
3 # Copyright (c) 2007,2009 Daniel Adler <dadler@uni-goettingen.de>, 3 # Copyright (c) 2007-2022 Daniel Adler <dadler@uni-goettingen.de>,
4 # Tassilo Philipp <tphilipp@potion-studios.com> 4 # Tassilo Philipp <tphilipp@potion-studios.com>
5 # 5 #
6 # Permission to use, copy, modify, and distribute this software for any 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 7 # purpose with or without fee is hereby granted, provided that the above
8 # copyright notice and this permission notice appear in all copies. 8 # copyright notice and this permission notice appear in all copies.
23 # tool_gcc.nmake 23 # tool_gcc.nmake
24 # 24 #
25 #/////////////////////////////////////////////////// 25 #///////////////////////////////////////////////////
26 26
27 27
28 CC =gcc
29 CXX =g++
30 AR =ar
31 AS =as
32 LD =g++#ld
33 OCP =objcopy
34
35
36 !IF "$(BUILD_OS)" == "nds"
37
28 CC =arm-eabi-gcc 38 CC =arm-eabi-gcc
29 CXX =arm-eabi-g++ 39 CXX =arm-eabi-g++
30 AR =arm-eabi-ar 40 AR =arm-eabi-ar
31 AS =arm-eabi-as 41 AS =arm-eabi-as
32 LD =arm-eabi-g++#arm-eabi-ld 42 LD =arm-eabi-g++#arm-eabi-ld
33 OCP =arm-eabi-objcopy 43 OCP =arm-eabi-objcopy
34 44
35 !IF "$(BUILD_ARCH)" == "arm32_thumb" 45 !IF "$(BUILD_ARCH)" == "arm32_thumb"
36 46
37 ASFLAGS = -g -mthumb -mthumb-interwork 47 ASFLAGS = -mthumb -mthumb-interwork
38 CFLAGS = -g -Wall -O2 -I$(TOP)\dyncall -I$(TOP)\dyncallback -fomit-frame-pointer -ffast-math -fno-strict-aliasing -mthumb -mthumb-interwork 48 CFLAGS = -Wall -O2 -I$(TOP)\dyncall -I$(TOP)\dyncallback -fomit-frame-pointer -ffast-math -fno-strict-aliasing -mthumb -mthumb-interwork
39 CXXFLAGS = $(CFLAGS) -fno-rtti -fno-exceptions 49 CXXFLAGS = $(CFLAGS) -fno-rtti -fno-exceptions
40 LDFLAGS = -g -mno-fpu -mthumb -mthumb-interwork 50 LDFLAGS = -mno-fpu -mthumb -mthumb-interwork
41 ARFLAGS = 51 ARFLAGS =
42 52
43 !ELSE IF "$(BUILD_ARCH)" == "arm32_arm" 53 !ELSE IF "$(BUILD_ARCH)" == "arm32_arm"
44 54
45 ASFLAGS = -g 55 ASFLAGS =
46 CFLAGS = -g -Wall -O2 -I$(TOP)\dyncall -I$(TOP)\dyncallback -fomit-frame-pointer -ffast-math -fno-strict-aliasing 56 CFLAGS = -Wall -O2 -I$(TOP)\dyncall -I$(TOP)\dyncallback -fomit-frame-pointer -ffast-math -fno-strict-aliasing
47 CXXFLAGS = $(CFLAGS) -fno-rtti -fno-exceptions 57 CXXFLAGS = $(CFLAGS) -fno-rtti -fno-exceptions
48 LDFLAGS = -g -mno-fpu 58 LDFLAGS = -mno-fpu
49 ARFLAGS = 59 ARFLAGS =
50 60
51 !ENDIF 61 !ENDIF
52 62
53
54 !IF "$(BUILD_OS)" == "nds"
55 CFLAGS = $(CFLAGS) -DARM9 -mcpu=arm9tdmi -mtune=arm9tdmi -D__nds__ -I"$(DEVKITPRO_PATH)/libnds/include" 63 CFLAGS = $(CFLAGS) -DARM9 -mcpu=arm9tdmi -mtune=arm9tdmi -D__nds__ -I"$(DEVKITPRO_PATH)/libnds/include"
56 CXXFLAGS = $(CXXFLAGS) -D__nds__ -I"$(DEVKITPRO_PATH)/libnds/include" 64 CXXFLAGS = $(CXXFLAGS) -D__nds__ -I"$(DEVKITPRO_PATH)/libnds/include"
57 LDFLAGS = $(LDFLAGS) -specs=ds_arm9.specs 65 LDFLAGS = $(LDFLAGS) -specs=ds_arm9.specs
66
58 !ENDIF 67 !ENDIF
59 68
60 69
61 .SUFFIXES: 70 .SUFFIXES:
62 .SUFFIXES: .o .so .a .arm9 .nds .pdf .c .cpp .S .tex .cc 71 .SUFFIXES: .o .so .a .arm9 .nds .pdf .c .cpp .S .tex .cc
78 echo .cc.o: Compiling $< ... 87 echo .cc.o: Compiling $< ...
79 $(CXX) $(CXXFLAGS) -o $@ -c $< 88 $(CXX) $(CXXFLAGS) -o $@ -c $<
80 89
81 .tex.pdf: 90 .tex.pdf:
82 pdflatex $< 91 pdflatex $<
92