/[soft]/drakx/trunk/Makefile.common
ViewVC logotype

Contents of /drakx/trunk/Makefile.common

Parent Directory Parent Directory | Revision Log Revision Log


Revision 448 - (show annotations) (download)
Sun Feb 6 23:02:36 2011 UTC (13 years, 8 months ago) by dmorgan
File size: 1613 byte(s)
Add cleaned files
1 # -*- makefile -*-
2 #******************************************************************************
3 #
4 # Guillaume Cottenceau (gc@mandrakesoft.com)
5 #
6 # Copyright 2000 Mandrakesoft
7 #
8 # This software may be freely redistributed under the terms of the GNU
9 # public license.
10 #
11 # You should have received a copy of the GNU General Public License
12 # along with this program; if not, write to the Free Software
13 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
14 #
15 #*****************************************************************************
16
17 ARCH := $(patsubst i%86,i386,$(shell uname -m))
18 ARCH := $(patsubst sparc%,sparc,$(ARCH))
19
20 #- default lib is dietlibc (honoured by main Makefile whenever possible)
21 L = DIETLIBC
22 #L = GLIBC
23
24 #- default frontend is newt (honoured by main Makefile whenever possible)
25 F = NEWT
26 # F = STDIO
27
28 #- override in some situations
29 ifeq (ia64, $(ARCH))
30 L = GLIBC
31 endif
32 ifeq (ppc, $(ARCH))
33 L = GLIBC
34 endif
35 ifeq (x86_64, $(ARCH))
36 #L = GLIBC
37 endif
38
39 ifeq (DIETLIBC, $(L))
40 DIET = $(top_dir)/dietlibc/bin-$(ARCH)/diet
41 endif
42
43
44 #- flags used by all stuff
45 ifeq (ppc, $(ARCH))
46 CFLAGS = -Os -pipe -Wall -fomit-frame-pointer -fno-strict-aliasing
47 else
48 CFLAGS = -Os -pipe -Wall -Werror -fomit-frame-pointer -fno-strict-aliasing
49 endif
50
51 DIETLIBC_INCLUDES = -I$(top_dir)/dietlibc/include -I. -I$(top_dir)/bzlib
52 GLIBC_INCLUDES = -I. -I$(top_dir)/bzlib
53 INCLUDES = $($(L)_INCLUDES)
54
55 GLIBC_LDFLAGS_STAGE1 = -static
56 DIETLIBC_LDFLAGS_STAGE1 = -nostdlib
57 LDFLAGS_STAGE1 = $($(L)_LDFLAGS_STAGE1)
58
59 GLIBC_LIBC =
60 DIETLIBC_LIBC =
61 STAGE1_LIBC = $($(L)_LIBC)
62
63 STRIPCMD = strip -R .note -R .comment
64

  ViewVC Help
Powered by ViewVC 1.1.30