URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [mw/] [src/] [Arch.rules] - Rev 716
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 & definitionsifeq ($(ARCH), FREEBSD-X86)COMPILER = gccCXX_COMPILER = g++TOOLSPREFIX =DEFINES += -DLINUX=1 -DUNIX=1CFLAGS += -Wall $(OPTFLAGS)LDFLAGS +=endififeq ($(ARCH), LINUX-NATIVE)COMPILER = gccCXX_COMPILER = g++TOOLSPREFIX =DEFINES += -DLINUX=1 -DUNIX=1CFLAGS += -Wall $(OPTFLAGS)LDFLAGS +=# include the following line for static libraries#LDFLAGS += -staticendififeq ($(ARCH), LINUX-ARM)COMPILER = gccCXX_COMPILER = g++TOOLSPREFIX = $(ARMTOOLSPREFIX)DEFINES += -DLINUX=1 -DUNIX=1CFLAGS += -Wall $(OPTFLAGS) -mstructure-size-boundary=8LDFLAGS +=endififeq ($(ARCH), LINUX-MIPS)COMPILER = gccCXX_COMPILER = g++TOOLSPREFIX = $(MIPSTOOLSPREFIX)DEFINES += -DLINUX=1 -DUNIX=1CFLAGS += -msoft-float -Wall $(OPTFLAGS)ifneq ($(DEBUG), Y)CFLAGS += -sendifLDFLAGS +=endififeq ($(ARCH), UCLINUX-OR32)COMPILER = gccCXX_COMPILER = g++TOOLSPREFIX = $(OR32TOOLSPREFIX)DEFINES += -DLINUX=1 -DUNIX=1#CFLAGS += -Wall $(OPTFLAGS)CFLAGS += -Wall -Werror-implicit-function-declaration $(OPTFLAGS)#LDFLAGS += -L /projects/or32-uclinux/lib#LDFLAGS += -staticLDFLAGS += -r -dendififeq ($(ARCH), LINUX-POWERPC)COMPILER = gccCXX_COMPILER = g++TOOLSPREFIX = $(POWERPCTOOLSPREFIX)DEFINES += -DLINUX=1 -DUNIX=1CFLAGS += -msoft-float -Wall $(OPTFLAGS)ifneq ($(DEBUG), Y)CFLAGS += -sendifLDFLAGS +=endififeq ($(ARCH), LINUX-SH)COMPILER = gccCXX_COMPILER = g++TOOLSPREFIX =$(SHTOOLSPREFIX)DEFINES += -DLINUX=1 -DUNIX=1CFLAGS += -m1 -m3 -Wall $(OPTFLAGS)LDFLAGS +=endififeq ($(ARCH), SOLARIS)# may require using cc if gcc not installed:COMPILER = gccHOSTCC = gccCXX_COMPILER = g++TOOLSPREFIX =DEFINES += -DUNIX=1 -DBIGENDIAN=1CFLAGS += $(OPTFLAGS)LDFLAGS += -lsocket -lnsl -lrtendififeq ($(ARCH), ELKS)COMPILER = bccHOSTCC = gccCXX_COMPILER =TOOLSPREFIX =INCLUDEDIRS += -I/usr/bcc/include -I/home/greg/net/elks/includeDEFINES += -DELKS=1 -DUNIX=1 -Dconst= -Dvolatile=CFLAGS += -0 -ansi -OLDFLAGS +=endififeq ($(ARCH), DJGPP)COMPILER = gccCXX_COMPILER = g++TOOLSPREFIX =DEFINES += -DDOS_DJGPP=1 -D_NAIVE_DOS_REGS=1 -DMSDOS=1CFLAGS += -Wall $(OPTFLAGS)LDFLAGS +=endififeq ($(ARCH), RTEMS)COMPILER = gccCXX_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/sysDEFINES += -DUNIX=1CFLAGS += -O4 -Wall -Wno-unused -fasm -g \-B$(RTEMS_BUILD)/$(RTEMS_BSP)/lib/ -specs bsp_specs -qrtemsendififeq ($(ARCH), ECOS)COMPILER = gccCXX_COMPILER = g++TOOLSPREFIX = $(ARMTOOLSPREFIX)ECOS_PREFIX = /work/iPAQ/ecos/installINCLUDEDIRS += -I$(ECOS_PREFIX)/includeDEFINES += -D__ECOS -DUNIX=1CFLAGS += -mcpu=strongarm -Wall -ffunction-sections -fdata-sections -O2 -gLDFLAGS += -nostdlibendif
Go to most recent revision | Compare with Previous | Blame | View Log
