2010-07-14 09:47:17 +00:00
|
|
|
### start defines ###
|
2010-08-21 23:59:56 +00:00
|
|
|
include common.mk
|
2010-07-14 09:47:17 +00:00
|
|
|
|
2010-08-21 23:59:56 +00:00
|
|
|
INST_NAME=-install_name \
|
|
|
|
@executable_path/../Frameworks/Sci.framework/Versions/A/Sci
|
2010-07-14 09:47:17 +00:00
|
|
|
|
|
|
|
LD=gcc $(ARCH) -dynamiclib -framework Cocoa $(INST_NAME)
|
|
|
|
|
2010-08-21 23:59:56 +00:00
|
|
|
SCI_LEXERS=LexAPDL.o LexASY.o LexAU3.o LexAVE.o LexAbaqus.o LexAda.o \
|
|
|
|
LexAsm.o LexAsn1.o LexBaan.o LexBash.o LexBasic.o LexBullant.o LexCLW.o \
|
|
|
|
LexCOBOL.o LexCPP.o LexCSS.o LexCaml.o LexCmake.o LexConf.o LexCrontab.o \
|
|
|
|
LexCsound.o LexD.o LexEScript.o LexEiffel.o LexErlang.o LexFlagship.o \
|
|
|
|
LexForth.o LexFortran.o LexGAP.o LexGui4Cli.o LexHTML.o LexHaskell.o \
|
|
|
|
LexInno.o LexKix.o LexLisp.o LexLout.o LexLua.o LexMMIXAL.o LexMPT.o \
|
|
|
|
LexMSSQL.o LexMagik.o LexMarkdown.o LexMatlab.o LexMetapost.o LexMySQL.o \
|
|
|
|
LexNimrod.o LexNsis.o LexOpal.o LexOthers.o LexPB.o LexPLM.o LexPOV.o \
|
|
|
|
LexPS.o LexPascal.o LexPerl.o LexPowerPro.o LexPowerShell.o LexProgress.o \
|
|
|
|
LexPython.o LexR.o LexRebol.o LexRuby.o LexSML.o LexSQL.o LexScriptol.o \
|
|
|
|
LexSmalltalk.o LexSorcus.o LexSpecman.o LexSpice.o LexTACL.o LexTADS3.o \
|
|
|
|
LexTAL.o LexTCL.o LexTeX.o LexVB.o LexVHDL.o LexVerilog.o LexYAML.o \
|
2010-09-05 22:56:27 +00:00
|
|
|
LexTxt2tags.o LexerBase.o LexerModule.o LexerSimple.o Accessor.o
|
2010-08-21 23:59:56 +00:00
|
|
|
|
|
|
|
SCI_OBJ=AutoComplete.o CallTip.o CellBuffer.o CharClassify.o \
|
|
|
|
ContractionState.o Decoration.o Document.o Editor.o \
|
|
|
|
ExternalLexer.o Indicator.o KeyMap.o LineMarker.o PerLine.o \
|
|
|
|
PositionCache.o PropSetSimple.o RESearch.o RunStyles.o ScintillaBase.o Style.o \
|
|
|
|
StyleContext.o UniConversion.o ViewStyle.o XPM.o WordList.o \
|
2010-09-05 22:56:27 +00:00
|
|
|
Selection.o CharacterSet.o Catalogue.o $(SCI_LEXERS)
|
2010-08-21 23:59:56 +00:00
|
|
|
|
|
|
|
WAH_OBJ=DocumentAccessor.o KeyWords.o WindowAccessor.o
|
|
|
|
|
2010-07-14 09:47:17 +00:00
|
|
|
COC_OBJ=PlatCocoa.o ScintillaCocoa.o ScintillaView.o InfoBar.o
|
|
|
|
|
2010-08-21 23:59:56 +00:00
|
|
|
OBJ=$(SCI_OBJ) $(UNUSED_OBJ) $(COC_OBJ)
|
|
|
|
OBJS=$(addprefix $(FRM_BLD)/,$(OBJ))
|
2010-07-14 09:47:17 +00:00
|
|
|
|
|
|
|
TARG=$(APP)/Versions/A/Sci
|
2010-08-21 23:59:56 +00:00
|
|
|
APP=$(FRM_BLD)/Sci.framework
|
2010-07-14 09:47:17 +00:00
|
|
|
### end defines ###
|
|
|
|
|
|
|
|
### start targets ###
|
|
|
|
|
2010-08-21 23:59:56 +00:00
|
|
|
all: $(FRM_BLD) $(TARG)
|
|
|
|
|
|
|
|
cleanfrm:
|
|
|
|
-rm -rf $(FRM_BLD)
|
2010-07-14 09:47:17 +00:00
|
|
|
|
2010-08-21 23:59:56 +00:00
|
|
|
$(APP): $(FRM_BLD)
|
2010-07-14 09:47:17 +00:00
|
|
|
-rm -rf $(APP)
|
|
|
|
-mkdir $(APP)
|
|
|
|
-mkdir $(APP)/Versions
|
|
|
|
-mkdir $(APP)/Versions/A
|
|
|
|
-mkdir $(APP)/Versions/A/Headers
|
|
|
|
-mkdir $(APP)/Versions/A/Resources
|
|
|
|
-ln -sf `pwd`/$(APP)/Versions/A `pwd`/$(APP)/Versions/Current
|
|
|
|
-ln -sf `pwd`/$(APP)/Versions/A/Headers `pwd`/$(APP)/Headers
|
|
|
|
-ln -sf `pwd`/$(APP)/Versions/A/Resources `pwd`/$(APP)/Resources
|
|
|
|
-cp *.h $(APP)/Headers/
|
|
|
|
-cp ../src/*.h $(APP)/Headers/
|
|
|
|
-cp ../include/*.h $(APP)/Headers/
|
|
|
|
-cp -R ScintillaFramework/English.lproj $(APP)/Resources
|
|
|
|
-cp res/*.png $(APP)/Resources
|
|
|
|
-cp ScintillaFramework/Info.plist $(APP)/Resources
|
|
|
|
|
|
|
|
$(TARG) : $(OBJS) $(APP)
|
|
|
|
$(LD) $(OBJS) $(gDEFs) -o $(TARG) -lstdc++
|
|
|
|
-ln `pwd`/$(TARG) `pwd`/$(APP)/Sci
|
|
|
|
|
2010-08-21 23:59:56 +00:00
|
|
|
$(FRM_BLD):
|
2010-07-14 09:47:17 +00:00
|
|
|
-mkdir $(BLD)
|
2010-08-21 23:59:56 +00:00
|
|
|
-mkdir $(FRM_BLD)
|
2010-07-14 09:47:17 +00:00
|
|
|
|
|
|
|
### get around to filling out the real dependencies later ###
|
2010-08-21 23:59:56 +00:00
|
|
|
#$(FRM_BLD)/AutoComplete.o : ../src/AutoComplete.cxx ../src/AutoComplete.h \
|
|
|
|
# ../include/Platform.h
|
2010-07-14 09:47:17 +00:00
|
|
|
|
2010-08-21 23:59:56 +00:00
|
|
|
#$(FRM_BLD)/CallTip.o : ../src/CallTip.cxx ../src/CallTip.h \
|
|
|
|
# ../include/Platform.h
|
2010-07-14 09:47:17 +00:00
|
|
|
|
|
|
|
### end targets ###
|