Kaydet (Commit) f0a9c429 authored tarafından Colomban Wendling's avatar Colomban Wendling

Update makefile.win32 build system

üst 13f3ee5e
...@@ -22,8 +22,9 @@ MAKE = make ...@@ -22,8 +22,9 @@ MAKE = make
# Note: && is needed after cd because each line is executed in a different # Note: && is needed after cd because each line is executed in a different
# shell. (cd .. is just for clarity). # shell. (cd .. is just for clarity).
all: config.h all: config.h
cd tagmanager/ctags && $(MAKE) -f makefile.win32 && cd ../..
cd tagmanager/mio && $(MAKE) -f makefile.win32 && cd ../.. cd tagmanager/mio && $(MAKE) -f makefile.win32 && cd ../..
cd tagmanager && $(MAKE) -f makefile.win32 && cd .. cd tagmanager/src && $(MAKE) -f makefile.win32 && cd ../..
cd scintilla && $(MAKE) -f makefile.win32 && cd .. cd scintilla && $(MAKE) -f makefile.win32 && cd ..
cd plugins && $(MAKE) -f makefile.win32 && cd .. cd plugins && $(MAKE) -f makefile.win32 && cd ..
cd src && $(MAKE) -f makefile.win32 && cd .. cd src && $(MAKE) -f makefile.win32 && cd ..
...@@ -32,15 +33,16 @@ config.h: win32-config.h ...@@ -32,15 +33,16 @@ config.h: win32-config.h
$(CP) $< $@ $(CP) $< $@
deps: deps:
-$(RM) tagmanager/mio/deps.mak tagmanager/deps.mak scintilla/deps.mak plugins/deps.mak src/deps.mak -$(RM) tagmanager/ctags/deps.mak tagmanager/mio/deps.mak tagmanager/src/deps.mak scintilla/deps.mak plugins/deps.mak src/deps.mak
# used by src/makefile.win32 to avoid del ../file which is an error # used by src/makefile.win32 to avoid del ../file which is an error
clean-local: clean-local:
-$(RM) geany_private.res geany.exe -$(RM) geany_private.res geany.exe
clean: deps clean: deps
cd tagmanager/ctags && $(MAKE) -f makefile.win32 clean && cd ../..
cd tagmanager/mio && $(MAKE) -f makefile.win32 clean && cd ../.. cd tagmanager/mio && $(MAKE) -f makefile.win32 clean && cd ../..
cd tagmanager && $(MAKE) -f makefile.win32 clean && cd .. cd tagmanager/src && $(MAKE) -f makefile.win32 clean && cd ../..
cd scintilla && $(MAKE) -f makefile.win32 clean && cd .. cd scintilla && $(MAKE) -f makefile.win32 clean && cd ..
cd plugins && $(MAKE) -f makefile.win32 clean && cd .. cd plugins && $(MAKE) -f makefile.win32 clean && cd ..
cd src && $(MAKE) -f makefile.win32 clean && cd .. cd src && $(MAKE) -f makefile.win32 clean && cd ..
......
...@@ -85,9 +85,9 @@ exec: ...@@ -85,9 +85,9 @@ exec:
binclean: binclean:
$(RM) $(TARGET) $(RM) $(TARGET)
$(TARGET): $(OBJS) $(RES) ../scintilla/scintilla.a ../tagmanager/mio/mio.a ../tagmanager/tagmanager.a $(TARGET): $(OBJS) $(RES) ../scintilla/scintilla.a ../tagmanager/ctags/ctags.a ../tagmanager/mio/mio.a ../tagmanager/src/tagmanager.a
$(CXX) $(OBJS) $(RES) -o $(TARGET) \ $(CXX) $(OBJS) $(RES) -o $(TARGET) \
../scintilla/scintilla.a ../tagmanager/tagmanager.a ../tagmanager/mio/mio.a \ ../scintilla/scintilla.a ../tagmanager/ctags/ctags.a ../tagmanager/src/tagmanager.a ../tagmanager/mio/mio.a \
$(ALL_GTK_LIBS) $(WIN_LIBS) $(ALL_GTK_LIBS) $(WIN_LIBS)
deps.mak: deps.mak:
......
## Process this file with automake to produce Makefile.in ## Process this file with automake to produce Makefile.in
SUBDIRS = ctags mio src SUBDIRS = ctags mio src
EXTRA_DIST = \
makefile.win32
...@@ -5,9 +5,9 @@ AR = ar ...@@ -5,9 +5,9 @@ AR = ar
RANLIB = ranlib RANLIB = ranlib
PREFIX = C:/libs PREFIX = C:/libs
RM = del RM = del
-include ../localwin32.mk -include ../../localwin32.mk
COMPLIB=tagmanager.a COMPLIB=ctags.a
REGEX_DEFINES = -DHAVE_REGCOMP -DSTDC_HEADERS=1 REGEX_DEFINES = -DHAVE_REGCOMP -DSTDC_HEADERS=1
...@@ -23,7 +23,7 @@ GTK_INCLUDES= \ ...@@ -23,7 +23,7 @@ GTK_INCLUDES= \
-I$(PREFIX)/include \ -I$(PREFIX)/include \
-I$(PREFIX)/include/gettext -I$(PREFIX)/include/gettext
INCLUDEDIRS=-I include -I mio -I . $(GTK_INCLUDES) INCLUDEDIRS=-I ../ -I . $(GTK_INCLUDES)
CBASEFLAGS=-Wall -pipe -mms-bitfields -DPACKAGE=\"geany\" -DG_OS_WIN32 -Wno-missing-braces -Wno-char-subscripts $(INCLUDEDIRS) CBASEFLAGS=-Wall -pipe -mms-bitfields -DPACKAGE=\"geany\" -DG_OS_WIN32 -Wno-missing-braces -Wno-char-subscripts $(INCLUDEDIRS)
ifdef DEBUG ifdef DEBUG
...@@ -45,8 +45,7 @@ actionscript.o nsis.o objc.o \ ...@@ -45,8 +45,7 @@ actionscript.o nsis.o objc.o \
haskell.o haxe.o html.o python.o lregex.o rest.o sh.o ctags.o entry.o get.o keyword.o nestlevel.o \ haskell.o haxe.o html.o python.o lregex.o rest.o sh.o ctags.o entry.o get.o keyword.o nestlevel.o \
options.o \ options.o \
parse.o basic.o read.o sort.o strlist.o latex.o markdown.o matlab.o docbook.o tcl.o ruby.o asm.o sql.o txt2tags.o css.o \ parse.o basic.o read.o sort.o strlist.o latex.o markdown.o matlab.o docbook.o tcl.o ruby.o asm.o sql.o txt2tags.o css.o \
vstring.o tm_workspace.o tm_work_object.o tm_source_file.o tm_project.o tm_tag.o \ vstring.o r.o
tm_symbol.o tm_file_entry.o tm_tagmanager.o r.o
$(AR) rc $@ $^ $(AR) rc $@ $^
$(RANLIB) $@ $(RANLIB) $@
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
CC = gcc CC = gcc
AR = ar AR = ar
RANLIB = ranlib RANLIB = ranlib
PREFIX = C:\libs PREFIX = C:/libs
RM = del RM = del
-include ../../localwin32.mk -include ../../localwin32.mk
......
.SUFFIXES: .cxx .c .o .h .a
CC = gcc
AR = ar
RANLIB = ranlib
PREFIX = C:/libs
RM = del
-include ../../localwin32.mk
COMPLIB=tagmanager.a
REGEX_DEFINES = -DHAVE_REGCOMP -DSTDC_HEADERS=1
GTK_INCLUDES= \
-I$(PREFIX)/include/gtk-2.0 \
-I$(PREFIX)/lib/gtk-2.0/include \
-I$(PREFIX)/include/atk-1.0 \
-I$(PREFIX)/include/cairo \
-I$(PREFIX)/include/gdk-pixbuf-2.0 \
-I$(PREFIX)/include/pango-1.0 \
-I$(PREFIX)/include/glib-2.0 \
-I$(PREFIX)/lib/glib-2.0/include \
-I$(PREFIX)/include \
-I$(PREFIX)/include/gettext
INCLUDEDIRS=-I ../ -I ../mio -I . $(GTK_INCLUDES)
CBASEFLAGS=-Wall -pipe -mms-bitfields -DPACKAGE=\"geany\" -DG_OS_WIN32 -Wno-missing-braces -Wno-char-subscripts $(INCLUDEDIRS)
ifdef DEBUG
CFLAGS= -O0 -g $(CBASEFLAGS)
else
CFLAGS=-O2 $(CBASEFLAGS)
endif
.c.o:
$(CC) $(REGEX_DEFINES) $(CFLAGS) -w -c $<
all: $(COMPLIB)
clean:
-$(RM) deps.mak *.o $(COMPLIB)
$(COMPLIB): tm_workspace.o tm_work_object.o tm_source_file.o tm_project.o tm_tag.o \
tm_symbol.o tm_file_entry.o tm_tagmanager.o
$(AR) rc $@ $^
$(RANLIB) $@
deps.mak:
$(CC) -MM $(CFLAGS) *.c >deps.mak
# Generate header dependencies with "make deps.mak"
include deps.mak
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment