source: project/chicken/branches/prerelease/Makefile.solaris @ 13240

Last change on this file since 13240 was 13240, checked in by felix winkelmann, 11 years ago

merged trunk svn rev. 13239 into prerelease

File size: 3.5 KB
Line 
1# Makefile.solaris - configuration for Solaris -*- Makefile -*-
2#
3# Copyright (c) 2007, Felix L. Winkelmann
4# Copyright (c) 2008-2009, The Chicken Team
5# All rights reserved.
6#
7# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
8# conditions are met:
9#
10#   Redistributions of source code must retain the above copyright notice, this list of conditions and the following
11#     disclaimer.
12#   Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
13#     disclaimer in the documentation and/or other materials provided with the distribution.
14#   Neither the name of the author nor the names of its contributors may be used to endorse or promote
15#     products derived from this software without specific prior written permission.
16#
17# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
18# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
19# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
20# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25# POSSIBILITY OF SUCH DAMAGE.
26
27
28SRCDIR = ./
29
30# platform configuration
31
32ARCH = $(shell sh $(SRCDIR)/config-arch.sh)
33
34# options
35
36C_COMPILER_OPTIONS = -fno-strict-aliasing -DHAVE_CHICKEN_CONFIG_H
37ifdef DEBUGBUILD
38C_COMPILER_OPTIMIZATION_OPTIONS ?= -g -Wall -Wno-unused
39else
40C_COMPILER_OPTIMIZATION_OPTIONS ?= -Os -fomit-frame-pointer
41endif
42LINKER_LINK_SHARED_LIBRARY_OPTIONS = -shared
43LINKER_LINK_SHARED_DLOADABLE_OPTIONS = -shared -Wl,-R$(RUNTIME_LINKER_PATH) -Wl,-L.
44LINKER_LINK_SHARED_PROGRAM_OPTIONS = -Wl,-R$(RUNTIME_LINKER_PATH)
45LIBRARIES = -lrt -lsocket -lnsl -lm -ldl
46NEEDS_RELINKING = yes
47
48# special files
49
50CHICKEN_CONFIG_H = chicken-config.h
51
52# select default and internal settings
53
54include $(SRCDIR)/defaults.make
55
56chicken-config.h: chicken-defaults.h
57        echo "#define HAVE_DIRENT_H 1" >$@
58        echo "#define HAVE_DLFCN_H 1" >>$@
59        echo "#define HAVE_INTTYPES_H 1" >>$@
60        echo "#define HAVE_LIMITS_H 1" >>$@
61        echo "#define HAVE_LONG_LONG 1" >>$@
62        echo "#define HAVE_MEMMOVE 1" >>$@
63        echo "#define HAVE_MEMORY_H 1" >>$@
64        echo "#define HAVE_STDINT_H 1" >>$@
65        echo "#define HAVE_STDLIB_H 1" >>$@
66        echo "#define HAVE_STRERROR 1" >>$@
67        echo "#define HAVE_STRINGS_H 1" >>$@
68        echo "#define HAVE_STRING_H 1" >>$@
69        echo "#define HAVE_STRTOLL 1" >>$@
70        echo "#define HAVE_SYS_STAT_H 1" >>$@
71        echo "#define HAVE_SYS_TYPES_H 1" >>$@
72        echo "#define HAVE_UNISTD_H 1" >>$@
73        echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>$@
74        echo "#define STDC_HEADERS 1" >>$@
75        echo "#define HAVE_ALLOCA_H 1" >>$@
76        echo "#define HAVE_ALLOCA 1" >>$@
77        echo "#define HAVE_GRP_H 1" >>$@
78        echo "#define HAVE_ERRNO_H 1" >>$@
79        echo "#define HAVE_GCVT 1" >>$@
80        echo "#define HAVE_SYSEXITS_H 1" >>$@
81        echo "#define C_STACK_GROWS_DOWNWARD 1" >>$@
82ifdef GCHOOKS
83        echo "#define C_GC_HOOKS" >>$@
84endif
85ifdef SYMBOLGC
86        echo "#define C_COLLECT_ALL_SYMBOLS" >>$@
87endif
88ifdef NOAPPLYHOOK
89        echo "#define C_NO_APPLY_HOOK" >>$@
90endif
91ifneq ($(HACKED_APPLY),)
92        echo "#define C_HACKED_APPLY" >>$@
93endif
94        cat chicken-defaults.h >>$@
95
96include $(SRCDIR)/rules.make
Note: See TracBrowser for help on using the repository browser.