comparison buildsys/nmake/tool_clang.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
children
comparison
equal deleted inserted replaced
631:e5ad8cf0aa72 632:ed19b429a152
1 #//////////////////////////////////////////////////////////////////////////////
2 #
3 # Copyright (c) 2022 Tassilo Philipp <tphilipp@potion-studios.com>
4 #
5 # Permission to use, copy, modify, and distribute this software for any
6 # purpose with or without fee is hereby granted, provided that the above
7 # copyright notice and this permission notice appear in all copies.
8 #
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 #
17 #//////////////////////////////////////////////////////////////////////////////
18
19 #///////////////////////////////////////////////////
20 #
21 # clang nmake rules
22 # tool_clang.nmake
23 #
24 #///////////////////////////////////////////////////
25
26
27 CC =clang
28 CXX =clang++
29 AR =ar
30 AS =as
31 LD =clang++#ld
32 OCP =objcopy
33
34
35 .SUFFIXES:
36 .SUFFIXES: .o .so .a .pdf .c .cpp .S .tex .cc
37
38
39 .S.o:
40 echo .S.o: Assembling $< ...
41 $(CC) $(ASFLAGS) $(CFLAGS) -o $@ -c $<
42
43 .c.o:
44 echo .c.o: Compiling $< ...
45 $(CC) $(CFLAGS) -o $@ -c $<
46
47 .cpp.o:
48 echo .cpp.o: Compiling $< ...
49 $(CXX) $(CXXFLAGS) -o $@ -c $<
50
51 .cc.o:
52 echo .cc.o: Compiling $< ...
53 $(CXX) $(CXXFLAGS) -o $@ -c $<
54
55 .tex.pdf:
56 pdflatex $<
57