clang.mk

Fri, 06 Sep 2013 13:20:20 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 06 Sep 2013 13:20:20 +0200
changeset 152
3238f65db163
child 155
45395ba5ed30
permissions
-rw-r--r--

minor code fixes + added clang support + improved build system

universe@152 1 #
universe@152 2 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
universe@152 3 #
universe@152 4 # Copyright 2013 Olaf Wintermann. All rights reserved.
universe@152 5 #
universe@152 6 # Redistribution and use in source and binary forms, with or without
universe@152 7 # modification, are permitted provided that the following conditions are met:
universe@152 8 #
universe@152 9 # 1. Redistributions of source code must retain the above copyright
universe@152 10 # notice, this list of conditions and the following disclaimer.
universe@152 11 #
universe@152 12 # 2. Redistributions in binary form must reproduce the above copyright
universe@152 13 # notice, this list of conditions and the following disclaimer in the
universe@152 14 # documentation and/or other materials provided with the distribution.
universe@152 15 #
universe@152 16 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
universe@152 17 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
universe@152 18 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
universe@152 19 # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
universe@152 20 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
universe@152 21 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
universe@152 22 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
universe@152 23 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
universe@152 24 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
universe@152 25 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
universe@152 26 # POSSIBILITY OF SUCH DAMAGE.
universe@152 27 #
universe@152 28
universe@152 29 CC = clang
universe@152 30 LD = clang
universe@152 31
universe@152 32 CFLAGS = -std=gnu99 -O2 -fstrict-aliasing -c
universe@152 33 LDFLAGS = -lm
universe@152 34

mercurial