[f56bbc]: win32 / makefile  Maximize  Restore  History

Download this file

163 lines (127 with data), 6.6 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# Make file for SciTE on Windows
# Copyright 1998-2010 by Neil Hodgson <neilh@scintilla.org>
# The License.txt file describes the conditions under which this software may be distributed.
# This makefile assumes the mingw32 version of GCC 4.x is used and changes will
# be needed to use other compilers.
.SUFFIXES: .cxx .properties
CC = g++
ifndef CYGWIN
DEL = del /q
COPY = copy
else
DEL = rm
COPY = cp
endif
PROG = ../bin/SciTE.exe
PROGSTATIC = ../bin/Sc1.exe
WIDEFLAGS=-DUNICODE -D_UNICODE
vpath %.h ../src ../../scintilla/include ../../scintilla/win32
vpath %.cxx ../src
vpath %.o ../../scintilla/win32
vpath %.a ../../scintilla/win32
ifndef NO_LUA
LUA_CORE_OBJS = lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o \
lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o \
ltable.o ltm.o lundump.o lvm.o lzio.o
LUA_LIB_OBJS = lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o ltablib.o \
lstrlib.o loadlib.o loslib.o linit.o
LUA_OBJS = LuaExtension.o SingleThreadExtension.o $(LUA_CORE_OBJS) $(LUA_LIB_OBJS)
vpath %.c ../lua/src ../lua/src/lib
LUA_INCLUDES = -I ../lua/include
#LUA_SCRIPTS = ..\bin\SciTEExtension.lua ..\bin\SciTEStartup.lua
else
LUA_DEFINES = -DNO_LUA
endif
INCLUDEDIRS=-I ../../scintilla/include -I ../../scintilla/win32 -I ../src $(LUA_INCLUDES)
RCINCLUDEDIRS=--include-dir ../../scintilla/win32 --include-dir ../src
CBASEFLAGS = -W -Wall $(INCLUDEDIRS) $(LUA_DEFINES) $(WIDEFLAGS) -mno-cygwin
ifdef DEBUG
CFLAGS=-DDEBUG -g $(CBASEFLAGS)
else
CFLAGS=-DNDEBUG -Os $(CBASEFLAGS)
STRIPFLAG="-Wl,-s"
endif
CXXFLAGS = $(CFLAGS) -Wno-char-subscripts -pedantic -fno-rtti -mno-cygwin
LDFLAGS=-mwindows -lcomctl32 -limm32 -lole32 -luuid -luxtheme $(LUA_LDFLAGS) -mno-cygwin
.cxx.o:
$(CC) $(CXXFLAGS) -c $< -o $@
.c.o:
gcc $(CFLAGS) -c $< -o $@
OTHER_OBJS = FilePath.o SciTEBuffers.o SciTEIO.o Exporters.o PropSetFile.o StringList.o \
SciTEProps.o SciTEWin.o SciTEWinBar.o SciTEWinDlg.o MultiplexExtension.o \
StyleWriter.o UniqueInstance.o \
Utf8_16.o SciTERes.o GUIWin.o \
IFaceTable.o DirectorExtension.o JobQueue.o WinMutex.o $(LUA_OBJS)
OBJS = SciTEBase.o $(OTHER_OBJS)
DLLS=..\bin\Scintilla.dll ..\bin\SciLexer.dll
#++Autogenerated -- run scintilla/src/LexGen.py to regenerate
#**1:LEXPROPS=\\\n\(../bin/\* \)
LEXPROPS=\
../bin/abaqus.properties ../bin/ada.properties ../bin/asm.properties \
../bin/asn1.properties ../bin/au3.properties ../bin/ave.properties \
../bin/baan.properties ../bin/blitzbasic.properties ../bin/bullant.properties \
../bin/caml.properties ../bin/cmake.properties ../bin/cobol.properties \
../bin/conf.properties ../bin/cpp.properties ../bin/csound.properties \
../bin/css.properties ../bin/d.properties ../bin/eiffel.properties \
../bin/erlang.properties ../bin/escript.properties ../bin/flagship.properties \
../bin/forth.properties ../bin/fortran.properties ../bin/freebasic.properties \
../bin/gap.properties ../bin/html.properties ../bin/inno.properties \
../bin/kix.properties ../bin/latex.properties ../bin/lisp.properties \
../bin/lot.properties ../bin/lout.properties ../bin/lua.properties \
../bin/matlab.properties ../bin/metapost.properties ../bin/mmixal.properties \
../bin/nimrod.properties ../bin/nncrontab.properties ../bin/nsis.properties \
../bin/opal.properties ../bin/others.properties ../bin/pascal.properties \
../bin/perl.properties ../bin/pov.properties ../bin/powerpro.properties \
../bin/powershell.properties ../bin/ps.properties ../bin/purebasic.properties \
../bin/python.properties ../bin/r.properties ../bin/rebol.properties \
../bin/ruby.properties ../bin/scriptol.properties ../bin/smalltalk.properties \
../bin/sorcins.properties ../bin/specman.properties ../bin/spice.properties \
../bin/sql.properties ../bin/tacl.properties ../bin/tal.properties \
../bin/tcl.properties ../bin/tex.properties ../bin/vb.properties \
../bin/verilog.properties ../bin/vhdl.properties ../bin/yaml.properties
#--Autogenerated -- end of automatically generated section
PROPS=../bin/SciTEGlobal.properties ../bin/abbrev.properties $(LEXPROPS)
ALL: $(PROG) $(PROGSTATIC) $(DLLS) $(PROPS) $(LUA_SCRIPTS)
clean:
$(DEL) *.exe *.o *.obj *.dll *.res *.map
deps:
$(CC) -MM $(CXXFLAGS) *.cxx ../src/*.cxx ../lua/src/*.c ../lua/src/lib/*.c >deps.mak
..\bin\Scintilla.dll: ..\..\scintilla\bin\Scintilla.dll
$(COPY) ..\..\scintilla\bin\Scintilla.dll $@
..\bin\SciLexer.dll: ..\..\scintilla\bin\SciLexer.dll
$(COPY) ..\..\scintilla\bin\SciLexer.dll $@
# Using '/' rather than '\' as that allows make to match the next rule
../bin/%.properties: ../src/%.properties
$(COPY) $(subst /,\,$^) $(subst /,\,$@)
# Normally distributed rather than built as may not have grep on all machines
# Copy all non-comment lines from all the properties files into one combined file
..\src\Embedded.properties: $(PROPS)
grep -v -h "^[#]" $(PROPS) >..\src\Embedded.properties
$(PROG): $(OBJS)
$(CC) $(STRIPFLAG) -Xlinker --subsystem -Xlinker windows -o $@ $^ $(LDFLAGS)
OBJSSTATIC = Sc1.o SciTEWinBar.o SciTEWinDlg.o MultiplexExtension.o \
StyleWriter.o UniqueInstance.o SciTEBase.o FilePath.o SciTEBuffers.o \
SciTEIO.o Exporters.o PropSetFile.o StringList.o SciTEProps.o ScintillaWinL.o \
ScintillaBaseL.o Editor.o Catalogue.o Accessor.o WordList.o CharacterSet.o \
LexerModule.o LexerSimple.o LexerBase.o \
ExternalLexer.o StyleContext.o Lexers.a PropSetSimple.o RunStyles.o \
ContractionState.o CharClassify.o Decoration.o Document.o CellBuffer.o CallTip.o Sc1Res.o PlatWin.o \
PositionCache.o UniConversion.o Utf8_16.o GUIWin.o KeyMap.o Indicator.o LineMarker.o RESearch.o Selection.o Style.o \
ViewStyle.o AutoComplete.o IFaceTable.o DirectorExtension.o MultiplexExtension.o XPM.o PerLine.o \
JobQueue.o WinMutex.o $(LUA_OBJS)
$(PROGSTATIC): $(OBJSSTATIC)
$(CC) $(STRIPFLAG) -Xlinker --subsystem -Xlinker windows -o $@ $^ $(LDFLAGS)
# Automatically generate dependencies for most files with "make deps"
include deps.mak
Sc1.o: SciTEWin.cxx SciTEWin.h SciTE.h PropSetFile.h \
SString.h Scintilla.h Extender.h FilePath.h SciTEBase.h JobQueue.h
$(CC) $(CXXFLAGS) -D STATIC_BUILD -c $< -o $@
SciTERes.o: SciTERes.rc SciTE.h PlatformRes.h SciTE.exe.manifest
windres $(RCINCLUDEDIRS) SciTERes.rc $@
# Also depends on ../src/Embedded.properties but may not want to build everywhere
# so must explicitly ask to build it.
Sc1Res.o: SciTERes.rc SciTE.h PlatformRes.h SciTE.exe.manifest
windres $(RCINCLUDEDIRS) SciTERes.rc --define STATIC_BUILD $@
# Make sure SciTEBase gets rebuilt (so its about box gets a new
# date stamp) when any of the other objects are updated.
SciTEBase.o: $(OTHER_OBJS)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks