OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [mw/] [src/] [Arch.rules] - Blame information for rev 1772

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 673 markom
##############################################################################
2
# Microwindows Architecture rules Makefile
3
# Copyright (c) 2000 Martin Jolicoeur, Greg Haerr
4
#
5
# This makefile should be placed at the top of a project hierarchy
6
#
7
# NOTE: The TOP environment variable should be set to that top directory
8
##############################################################################
9
 
10
# Platform dependent flags & definitions
11
 
12
ifeq ($(ARCH), FREEBSD-X86)
13
COMPILER = gcc
14
CXX_COMPILER = g++
15
TOOLSPREFIX =
16
DEFINES += -DLINUX=1 -DUNIX=1
17
CFLAGS += -Wall $(OPTFLAGS)
18
LDFLAGS +=
19
endif
20
 
21
 
22
ifeq ($(ARCH), LINUX-NATIVE)
23
COMPILER = gcc
24
CXX_COMPILER = g++
25
TOOLSPREFIX =
26
DEFINES += -DLINUX=1 -DUNIX=1
27
CFLAGS += -Wall $(OPTFLAGS)
28
LDFLAGS +=
29
# include the following line for static libraries
30
#LDFLAGS += -static
31
endif
32
 
33
ifeq ($(ARCH), LINUX-ARM)
34
COMPILER = gcc
35
CXX_COMPILER = g++
36
TOOLSPREFIX = $(ARMTOOLSPREFIX)
37
DEFINES += -DLINUX=1 -DUNIX=1
38
CFLAGS += -Wall $(OPTFLAGS) -mstructure-size-boundary=8
39
LDFLAGS +=
40
endif
41
 
42
ifeq ($(ARCH), LINUX-MIPS)
43
COMPILER = gcc
44
CXX_COMPILER = g++
45
TOOLSPREFIX = $(MIPSTOOLSPREFIX)
46
DEFINES += -DLINUX=1 -DUNIX=1
47
CFLAGS += -msoft-float -Wall $(OPTFLAGS)
48
ifneq ($(DEBUG), Y)
49
CFLAGS += -s
50
endif
51
LDFLAGS +=
52
endif
53
 
54
ifeq ($(ARCH), UCLINUX-OR32)
55
COMPILER = gcc
56
CXX_COMPILER = g++
57
TOOLSPREFIX = $(OR32TOOLSPREFIX)
58
DEFINES += -DLINUX=1 -DUNIX=1
59 716 simons
#CFLAGS += -Wall $(OPTFLAGS)
60
CFLAGS += -Wall -Werror-implicit-function-declaration $(OPTFLAGS)
61 673 markom
#LDFLAGS += -L /projects/or32-uclinux/lib
62
#LDFLAGS += -static
63 716 simons
LDFLAGS += -r -d
64 673 markom
endif
65
 
66
ifeq ($(ARCH), LINUX-POWERPC)
67
COMPILER = gcc
68
CXX_COMPILER = g++
69
TOOLSPREFIX = $(POWERPCTOOLSPREFIX)
70
DEFINES += -DLINUX=1 -DUNIX=1
71
CFLAGS += -msoft-float -Wall $(OPTFLAGS)
72
ifneq ($(DEBUG), Y)
73
CFLAGS += -s
74
endif
75
LDFLAGS +=
76
endif
77
 
78
ifeq ($(ARCH), LINUX-SH)
79
COMPILER = gcc
80
CXX_COMPILER = g++
81
TOOLSPREFIX =$(SHTOOLSPREFIX)
82
DEFINES += -DLINUX=1 -DUNIX=1
83
CFLAGS += -m1 -m3 -Wall $(OPTFLAGS)
84
LDFLAGS +=
85
endif
86
 
87
ifeq ($(ARCH), SOLARIS)
88
# may require using cc if gcc not installed:
89
COMPILER = gcc
90
HOSTCC = gcc
91
CXX_COMPILER = g++
92
TOOLSPREFIX =
93
DEFINES += -DUNIX=1 -DBIGENDIAN=1
94
CFLAGS += $(OPTFLAGS)
95
LDFLAGS += -lsocket -lnsl -lrt
96
endif
97
 
98
ifeq ($(ARCH), ELKS)
99
COMPILER = bcc
100
HOSTCC = gcc
101
CXX_COMPILER =
102
TOOLSPREFIX =
103
INCLUDEDIRS += -I/usr/bcc/include -I/home/greg/net/elks/include
104
DEFINES += -DELKS=1 -DUNIX=1 -Dconst= -Dvolatile=
105
CFLAGS += -0 -ansi -O
106
LDFLAGS +=
107
endif
108
 
109
ifeq ($(ARCH), DJGPP)
110
COMPILER = gcc
111
CXX_COMPILER = g++
112
TOOLSPREFIX =
113
DEFINES += -DDOS_DJGPP=1 -D_NAIVE_DOS_REGS=1 -DMSDOS=1
114
CFLAGS += -Wall $(OPTFLAGS)
115
LDFLAGS +=
116
endif
117
 
118
ifeq ($(ARCH), RTEMS)
119
COMPILER = gcc
120
CXX_COMPILER = g++
121
TOOLSPREFIX = $(RTEMSTOOLSPREFIX)
122
INCLUDEDIRS += -I$(RTEMS_BUILD)/$(RTEMS_BSP)/lib/include \
123
-I$(RTEMS_BUILD)/$(RTEMS_BSP)/lib/include/networking \
124
-I$(RTEMS_BUILD)/$(RTEMS_BSP)/lib/include/sys
125
DEFINES += -DUNIX=1
126
CFLAGS += -O4 -Wall -Wno-unused -fasm -g \
127
-B$(RTEMS_BUILD)/$(RTEMS_BSP)/lib/ -specs bsp_specs -qrtems
128
endif
129
 
130
ifeq ($(ARCH), ECOS)
131
    COMPILER = gcc
132
    CXX_COMPILER = g++
133
    TOOLSPREFIX = $(ARMTOOLSPREFIX)
134
    ECOS_PREFIX = /work/iPAQ/ecos/install
135
    INCLUDEDIRS += -I$(ECOS_PREFIX)/include
136
    DEFINES += -D__ECOS -DUNIX=1
137
    CFLAGS += -mcpu=strongarm -Wall -ffunction-sections -fdata-sections -O2 -g
138
    LDFLAGS += -nostdlib
139
endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.