|
|

楼主 |
发表于 2005-11-10 11:19:22
|
显示全部楼层
#这是Makefile
#问题是同一个文件有些函数能调试,有些函数调试不通
INSTROOT=../../../editor
LOCALEDIR=/usr/local/castedit/locale
PENTIUM=pentium3-
CROSS=$(PENTIUM)
CC = $(CROSS)g++
CHMOD = chmod
OBJECTS = AFDocument.o AFSheet.o AFElement.o AFText.o AFCharAttr.o AFString.o \
AFLine.o AFGroup.o \
AFFont.o AFView.o AFPartDoc.o \
AFPartButton.o AFPartEditBox.o AFPartPulldown.o AFSJ3List.o \
AFPartSlider.o AFPartGraList.o AFPartList.o AFPartPopup.o AFPartLabel.o \
AFDialogMsg.o AFParam.o \
AFCreateCommandPart.o AFCommand.o AFCmdFile.o AFCmdProperty.o AFCmdEtc.o \
AFCmdExport.o AFCmdColor.o AFCmdView.o \
AFCreateToolPart.o AFTool.o AFEditTool.o AFSelectTool.o \
AFDropTool.o AFLineTool.o \
AFSelect.o AFUndo.o AFCapture.o AFColor.o AFBackground.o \
AFApp.o AFArchive.o AFVersion.o \
AFUtility.o AFExport.o AFException.o \
AFKeybind.o AFContext.o AFConverter.o AFKeyCommand.o \
AFFileDialog.o AFFontDialog.o AFWarning.o AFSwitchDialog.o AFWait.o \
signal_handler.o AFLangInfo.o
SJ3_LIBDIR = /usr/local/lib
SJ3_HDRDIR = /usr/local/include
ifeq ($(CROSS),$(PENTIUM))
# export PATH=${PATH}:/opt/hardhat/devkit/x86/pentium3/bin/
# TARGETROOT= /tftpboot/target
SDL_HDRDIR= $(TARGETROOT)/usr/local/include/SDL
SDL_LIBDIR= $(TARGETROOT)/usr/local/lib
SDL_LIBS = -L$(SDL_LIBDIR) -Wl,-rpath,$(SDL_LIBDIR) -lSDL -lpthread
SDL_CFLAGS = -I$(SDL_HDRDIR) -D_REENTRANT
CFLAGS = -DNDEBUG -DMPU -D_GLIBCPP_USE_WCHAR_T -D_I18N
CFLAGS += -I$(TARGETROOT)/usr/local/include/freetype2
else
SDL_LIBS =`sdl-config --libs`
SDL_CFLAGS =`sdl-config --cflags`
CFLAGS = -D_I18N
CFLAGS += -I/usr/local/include/freetype2
CFLAGS += `freetype-config --cflags`
endif
CFLAGS += $(SDL_CFLAGS) -I$(SJ3_HDRDIR)
CFLAGS += -I../../modules/gpio -I$(TARGETROOT)/usr/local/include
CFLAGS += -I../../include
LIBS = $(SDL_LIBS) -L$(SJ3_LIBDIR)
LIBS += -lAnycast_com -lmtools -lnsl
.cpp.o:
$(CC) -g -c -Wall -O2 ${CFLAGS} -o $@ $<
all : editor
editor: main.cpp $(OBJECTS)
$(CC) -g -Wall -O2 -fPIC main.cpp -o $@ \
$(OBJECTS) \
${CFLAGS} ${LIBS} \
-lfreetype \
-lime -lcrypt \
-lGDL -lSDL_draw -lSDL_image -lSDL_ttf -ltiff -lm\
-ljctype
depend:
makedepend -- $(CFLAGS) \
-I/usr/local/include/g++-3 \
-I/usr/include/c++/3.2.3 -I/usr/include/c++/3.2.3/backward \
-- *.c *.cpp
clean:
rm -f *.o
rm -f editor
install: all
install -d ${INSTROOT}/bin
install -d ${INSTROOT}/gdlfont
install -d ${INSTROOT}/etc
install -d ${INSTROOT}/bmp
-cp -r -f ../editor/bmp/* $(INSTROOT)/bmp/
install editor ${INSTROOT}/bin
install ../editor/bin/editor ${INSTROOT}/bin
install ../editor/bin/editorFactorySet ${INSTROOT}/bin
install ../editor/editor.ini ${INSTROOT}/etc
install ../editor/etc/sjrk ${INSTROOT}/etc
install ../editor/etc/version ${INSTROOT}/etc
install ../editor/gdlfont/*.dat ${INSTROOT}/gdlfont
install -d /castedit/editor/ttf
install ../editor/ttf/*.TTF /castedit/editor/ttf
install ../editor/ttf/*.ttf /castedit/editor/ttf
install ../editor/ttf/*.TTC /castedit/editor/ttf
# (dependency)
# DO NOT DELETE THIS LINE -- make depend depends on it.
AFDocument.o: AFDocument.h AFTypes.h AFVersion.h AFObject.h AFView.h AFUndo.h
AFSheet.o: AFSheet.h AFTypes.h AFObject.h AFView.h
AFElement.o: AFElement.h AFTypes.h AFObject.h
AFText.o: AFText.h AFTypes.h AFObject.h AFElement.h AFView.h AFCharAttr.h AFString.h AFFont.h
AFLine.o: AFLine.h AFTypes.h AFObject.h AFElement.h AFView.h
AFCharAttr.o: AFCharAttr.h AFTypes.h AFObject.h AFUtility.h AFLangInfo.h
AFString.o: AFString.h AFTypes.h AFLangInfo.h
AFFont.o: AFFont.h AFTypes.h
AFView.o: AFView.h AFTypes.h
AFPartDoc.o: AFPart.h AFTypes.h AFLangInfo.h
AFUtility.o: AFUtility.h AFTypes.h
AFPartButton.o: AFPart.h gdlxDef.h AFTypes.h
AFPartEditBox.o: AFPart.h gdlxDef.h AFTypes.h
AFPartPulldown.o: AFPartPulldown.h gdlxDef.h AFTypes.h
AFPartSlider.o: AFPart.h AFTypes.h
AFCreateCommandPart.o: AFPart.h AFTypes.h AFConverter.h
AFCreateToolPart.o: AFPart.h AFTypes.h
AFCommand.o: AFCommand.h AFTypes.h AFUndo.h
AFTool.o: AFTool.h AFTypes.h AFView.h AFConverter.h
AFEditTool.o: AFEditTool.h AFTool.h AFTypes.h AFContext.h AFConverter.h
AFSelectTool.o: AFSelectTool.h AFTool.h AFTypes.h AFUndo.h
AFMoveTool.o: AFMoveTool.h AFTool.h AFTypes.h AFUndo.h
AFSelect.o: AFSelect.h AFTypes.h AFConverter.h
AFApp.o: AFApp.h AFTypes.h AFConverter.h AFCmds.h AFSelectTool.h AFUndo.h
AFArchive.o: AFArchive.h AFTypes.h AFDocument.h AFSheet.h AFText.h AFGroup.h
AFVersion.o: AFVersion.h AFObject.h AFTypes.h
AFKeybind.o: AFKeybind.h AFContext.h
AFContext.o: AFContext.h
AFConverter.o: AFConverter.h
AFKeyCommand.o: AFConverter.h AFKeybind.h AFContext.h AFConverter.h
AFException.o: AFException.h
AFWarning.o: AFDialogs.h AFTypes.h AFPart.h AFUtility.h
AFCmdFile.o: AFCmds.h
AFCmdProperty.o: AFCmds.h
AFCmdEtc.o: AFCmds.h AFGroup.h
AFCmdView.o: AFCmds.h AFCapture.h AFBackground.h
AFBackground.o: AFBackground.h
AFCapture.o: AFCapture.h
AFUndo.o: AFDocument.h AFText.h AFApp.h AFUtility.h AFSelect.h
AFGroup.o: AFElement.h AFView.h AFSheet.h AFUtility.h
AFLangInfo.o: AFLangInfo.h
signal_handler.o: signal_handler.h |
|