Mercurial > pub > dyncall > dyncall
view 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 |
line wrap: on
line source
#////////////////////////////////////////////////////////////////////////////// # # Copyright (c) 2022 Tassilo Philipp <tphilipp@potion-studios.com> # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # #////////////////////////////////////////////////////////////////////////////// #/////////////////////////////////////////////////// # # clang nmake rules # tool_clang.nmake # #/////////////////////////////////////////////////// CC =clang CXX =clang++ AR =ar AS =as LD =clang++#ld OCP =objcopy .SUFFIXES: .SUFFIXES: .o .so .a .pdf .c .cpp .S .tex .cc .S.o: echo .S.o: Assembling $< ... $(CC) $(ASFLAGS) $(CFLAGS) -o $@ -c $< .c.o: echo .c.o: Compiling $< ... $(CC) $(CFLAGS) -o $@ -c $< .cpp.o: echo .cpp.o: Compiling $< ... $(CXX) $(CXXFLAGS) -o $@ -c $< .cc.o: echo .cc.o: Compiling $< ... $(CXX) $(CXXFLAGS) -o $@ -c $< .tex.pdf: pdflatex $<