URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [tags/] [MW_0_8_9PRE7/] [mw/] [src/] [Arch.rules] - Rev 674
Go to most recent revision | Compare with Previous | Blame | View Log
##############################################################################
# Microwindows Architecture rules Makefile
# Copyright (c) 2000 Martin Jolicoeur, Greg Haerr
#
# This makefile should be placed at the top of a project hierarchy
#
# NOTE: The TOP environment variable should be set to that top directory
##############################################################################
# Platform dependent flags & definitions
ifeq ($(ARCH), FREEBSD-X86)
COMPILER = gcc
CXX_COMPILER = g++
TOOLSPREFIX =
DEFINES += -DLINUX=1 -DUNIX=1
CFLAGS += -Wall $(OPTFLAGS)
LDFLAGS +=
endif
ifeq ($(ARCH), LINUX-NATIVE)
COMPILER = gcc
CXX_COMPILER = g++
TOOLSPREFIX =
DEFINES += -DLINUX=1 -DUNIX=1
CFLAGS += -Wall $(OPTFLAGS)
LDFLAGS +=
# include the following line for static libraries
#LDFLAGS += -static
endif
ifeq ($(ARCH), LINUX-ARM)
COMPILER = gcc
CXX_COMPILER = g++
TOOLSPREFIX = $(ARMTOOLSPREFIX)
DEFINES += -DLINUX=1 -DUNIX=1
CFLAGS += -Wall $(OPTFLAGS) -mstructure-size-boundary=8
LDFLAGS +=
endif
ifeq ($(ARCH), LINUX-MIPS)
COMPILER = gcc
CXX_COMPILER = g++
TOOLSPREFIX = $(MIPSTOOLSPREFIX)
DEFINES += -DLINUX=1 -DUNIX=1
CFLAGS += -msoft-float -Wall $(OPTFLAGS)
ifneq ($(DEBUG), Y)
CFLAGS += -s
endif
LDFLAGS +=
endif
ifeq ($(ARCH), UCLINUX-OR32)
COMPILER = gcc
CXX_COMPILER = g++
TOOLSPREFIX = $(OR32TOOLSPREFIX)
DEFINES += -DLINUX=1 -DUNIX=1
CFLAGS += -Wall $(OPTFLAGS)
#LDFLAGS += -L /projects/or32-uclinux/lib
#LDFLAGS += -static
endif
ifeq ($(ARCH), LINUX-POWERPC)
COMPILER = gcc
CXX_COMPILER = g++
TOOLSPREFIX = $(POWERPCTOOLSPREFIX)
DEFINES += -DLINUX=1 -DUNIX=1
CFLAGS += -msoft-float -Wall $(OPTFLAGS)
ifneq ($(DEBUG), Y)
CFLAGS += -s
endif
LDFLAGS +=
endif
ifeq ($(ARCH), LINUX-SH)
COMPILER = gcc
CXX_COMPILER = g++
TOOLSPREFIX =$(SHTOOLSPREFIX)
DEFINES += -DLINUX=1 -DUNIX=1
CFLAGS += -m1 -m3 -Wall $(OPTFLAGS)
LDFLAGS +=
endif
ifeq ($(ARCH), SOLARIS)
# may require using cc if gcc not installed:
COMPILER = gcc
HOSTCC = gcc
CXX_COMPILER = g++
TOOLSPREFIX =
DEFINES += -DUNIX=1 -DBIGENDIAN=1
CFLAGS += $(OPTFLAGS)
LDFLAGS += -lsocket -lnsl -lrt
endif
ifeq ($(ARCH), ELKS)
COMPILER = bcc
HOSTCC = gcc
CXX_COMPILER =
TOOLSPREFIX =
INCLUDEDIRS += -I/usr/bcc/include -I/home/greg/net/elks/include
DEFINES += -DELKS=1 -DUNIX=1 -Dconst= -Dvolatile=
CFLAGS += -0 -ansi -O
LDFLAGS +=
endif
ifeq ($(ARCH), DJGPP)
COMPILER = gcc
CXX_COMPILER = g++
TOOLSPREFIX =
DEFINES += -DDOS_DJGPP=1 -D_NAIVE_DOS_REGS=1 -DMSDOS=1
CFLAGS += -Wall $(OPTFLAGS)
LDFLAGS +=
endif
ifeq ($(ARCH), RTEMS)
COMPILER = gcc
CXX_COMPILER = g++
TOOLSPREFIX = $(RTEMSTOOLSPREFIX)
INCLUDEDIRS += -I$(RTEMS_BUILD)/$(RTEMS_BSP)/lib/include \
-I$(RTEMS_BUILD)/$(RTEMS_BSP)/lib/include/networking \
-I$(RTEMS_BUILD)/$(RTEMS_BSP)/lib/include/sys
DEFINES += -DUNIX=1
CFLAGS += -O4 -Wall -Wno-unused -fasm -g \
-B$(RTEMS_BUILD)/$(RTEMS_BSP)/lib/ -specs bsp_specs -qrtems
endif
ifeq ($(ARCH), ECOS)
COMPILER = gcc
CXX_COMPILER = g++
TOOLSPREFIX = $(ARMTOOLSPREFIX)
ECOS_PREFIX = /work/iPAQ/ecos/install
INCLUDEDIRS += -I$(ECOS_PREFIX)/include
DEFINES += -D__ECOS -DUNIX=1
CFLAGS += -mcpu=strongarm -Wall -ffunction-sections -fdata-sections -O2 -g
LDFLAGS += -nostdlib
endif
Go to most recent revision | Compare with Previous | Blame | View Log