⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile.rtems

📁 一个linux下的根文件系统的源码
💻 RTEMS
字号:
############################################################################### Microwindows template Makefile# Copyright (c) 2000 Martin Jolicoeur, Greg Haerr## Rosimildo da Silva# Udapted to the RTEMS environment...###############################################################################ifndef TOPTOP = ..CONFIG = $(TOP)/configendifinclude $(CONFIG)######################## Additional Flags section ############################# Directories list for header filesifeq ($(HAVE_JPEG_SUPPORT), Y)INCLUDEDIRS += -I$(TOP)/jpeg-6bendif# Defines for preprocessorDEFINES +=# Defines for preprocessorifeq ($(LINK_APP_INTO_SERVER), Y)DEFINES += -DNONETWORK=1endif# Compilation flags for C files OTHER than include directoriesCFLAGS +=# Preprocessor flags OTHER than definesCPPFLAGS +=# Linking flagsifeq ($(HAVE_JPEG_SUPPORT), Y)LDFLAGS += -L$(TOP)/jpeg-6bendif# PC386 specific stuff...PROJECT_RELEASE     = $(RTEMS_BUILD)/$(RTEMS_BSP)PROJECT_TOOLS       = $(PROJECT_RELEASE)/build-toolsSTART16FILE         = $(PROJECT_RELEASE)/lib/start16.binRELOCADDR           = 0x00100000START16ADDR         = 0x00097C00HEADERADDR          = 0x00097E00EXTRA_LFLAGS        =-Wl,-Ttext,$(RELOCADDR)############################# targets section ################################ifeq ($(ARCH), RTEMS)# If you want to create a library with the objects files, define the name hereLIBNAME =# Name of the target which the image will be created to the downloaded to the# target box.RTEMS_TARGET=rtems# Main module -- this module defines the "main()" routine to get compiled.# It basically selects which application is actually built to be loaded as# the RTEMS system. # For example, select one:# MAIN_OBJ = mw_uid_test.o                  -- Mouse & KBD test driver# MAIN_OBJ = ../demos/nanox/demo.o          -- Nano-X demo# MAIN_OBJ = ../demos/mwobjects/mwo-test.o  -- C++ demo# MAIN_OBJ = ../demos/test/test.o           -- test driver# If you want to build the "mineswipper" game, use the modules below.# This should give you an idea of what you have to do to the others demos.#MINEIMAGES = ../demos/mwin/mineflag.o ../demos/mwin/mineface.o \#             ../demos/mwin/minefacelost.o ../demos/mwin/minebomb.o \#             ../demos/mwin/minedone.o ../demos/mwin/minehitfalse.o#MAIN_OBJ =../demos/mwin/mine.o $(MINEIMAGES)MAIN_OBJ = ../demos/mwin/demo.o# List of objects always needed by a RTEMS applicationOBJS =	rtems_init.o # IMPORTANT NOTE: if MAIN_OBJ is a C++ code, add it to CXXOBJS instead.OBJS += $(MAIN_OBJ)# CXXOBJS += $(MAIN_OBJ)all: default $(RTEMS_TARGET).bt######################### Makefile.rules section #############################include $(TOP)/Makefile.rules######################## Tools targets section ################################ let's adjust the libraries to match the API that you are using.NLIBS =ifeq ($(NANOX), Y)NLIBS += -lnano-Xendififeq ($(NWIDGET), Y)NLIBS += -lnwidgetendififeq ($(OBJFRAMEWORK), Y)NLIBS += -lmwobjectsendififeq ($(MICROWIN), Y)NLIBS += -lmwin -lmwinlibendifNLIBS += -lmwengine -lmwdrivers -lmwfonts -lmwimages -lmifeq ($(VGALIB), Y)NLIBS += -lvgaendif$(RTEMS_TARGET).bt: $(RTEMS_TARGET).exe	$(OBJCOPY) -O binary $(RTEMS_TARGET).exe $(RTEMS_TARGET).bin;	$(PROJECT_TOOLS)/bin2boot -v $(RTEMS_TARGET).bt $(HEADERADDR) $(START16FILE) \	$(START16ADDR) 0 $(RTEMS_TARGET).bin $(RELOCADDR) 0;	rm $(RTEMS_TARGET).bin$(RTEMS_TARGET).exe: $(OBJS) $(CXXOBJS)	$(CXX) $(CFLAGS) $(LDFLAGS) $(EXTRA_LFLAGS) $^ -o $@ $(NLIBS)endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -