Add DEBUG flag to all Windows makefiles to make it possible to build with debug symbols and without optimizations also on Windows (using make DEBUG=1).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2487 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
e6ca538345
commit
2652667577
@ -2,6 +2,11 @@
|
||||
|
||||
* doc/images/pref_dialog_gen.png:
|
||||
Update for 0.14.
|
||||
* plugins/makefile.win32, scintilla/makefile.win32, src/makefile.win32,
|
||||
tagmanager/makefile.win32:
|
||||
Add DEBUG flag to all Windows makefiles to make it possible to build
|
||||
with debug symbols and without optimizations also on Windows
|
||||
(using make DEBUG=1).
|
||||
|
||||
|
||||
2008-04-13 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
||||
|
||||
@ -30,14 +30,20 @@ ALL_GTK_LIBS= \
|
||||
-lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 \
|
||||
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl -liconv
|
||||
|
||||
CCFLAGS=-Wall -O2 -mms-bitfields -DHAVE_CONFIG_H
|
||||
CBASEFLAGS=-Wall -pipe -mms-bitfields -DHAVE_CONFIG_H
|
||||
ifdef DEBUG
|
||||
CFLAGS=-O0 -g $(CBASEFLAGS)
|
||||
else
|
||||
CFLAGS=-O2 $(CBASEFLAGS)
|
||||
endif
|
||||
|
||||
|
||||
.PHONY: all clean plugins
|
||||
|
||||
all: plugins
|
||||
|
||||
.c.dll:
|
||||
$(CC) $(CCFLAGS) $(DEFINES) $(INCLUDEDIRS) -o $@.o -c $<
|
||||
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDEDIRS) -o $@.o -c $<
|
||||
$(CC) -shared $@.o $(ALL_GTK_LIBS) $(DLL_LD_FLAGS) -o $@
|
||||
|
||||
plugins: \
|
||||
@ -53,7 +59,7 @@ clean:
|
||||
-$(RM) deps.mak *.o *.dll
|
||||
|
||||
deps.mak:
|
||||
$(CC) -MM $(CCFLAGS) $(DEFINES) $(INCLUDEDIRS) *.c >deps.mak
|
||||
$(CC) -MM $(CFLAGS) $(DEFINES) $(INCLUDEDIRS) *.c >deps.mak
|
||||
|
||||
# Generate header dependencies with "make deps.mak"
|
||||
include deps.mak
|
||||
|
||||
@ -44,7 +44,7 @@ THREADFLAGS=
|
||||
endif
|
||||
|
||||
ifdef DEBUG
|
||||
CXXFLAGS=-DDEBUG -g $(CXXBASEFLAGS) $(THREADFLAGS)
|
||||
CXXFLAGS=-DDEBUG -g -O0 $(CXXBASEFLAGS) $(THREADFLAGS)
|
||||
else
|
||||
CXXFLAGS=-DNDEBUG -Os $(CXXBASEFLAGS) $(THREADFLAGS)
|
||||
endif
|
||||
|
||||
@ -52,7 +52,12 @@ endif
|
||||
WIN_LIBS=-mwindows -lkernel32 -limm32 -lshfolder -lshell32 \
|
||||
-lole32 -luuid -lcomdlg32 -lcomctl32 -liberty -lwsock32
|
||||
|
||||
CCFLAGS=-Wall -O2 -g -mms-bitfields $(DEFINES) $(INCLUDEDIRS)
|
||||
CBASEFLAGS=-Wall -pipe -mms-bitfields $(DEFINES) $(INCLUDEDIRS)
|
||||
ifdef DEBUG
|
||||
CFLAGS=-O0 -g $(CBASEFLAGS)
|
||||
else
|
||||
CFLAGS=-O2 $(CBASEFLAGS)
|
||||
endif
|
||||
|
||||
OBJS = about.o build.o callbacks.o dialogs.o document.o editor.o encodings.o filetypes.o \
|
||||
geanyobject.o geanywraplabel.o highlighting.o interface.o keybindings.o keyfile.o \
|
||||
@ -61,7 +66,7 @@ OBJS = about.o build.o callbacks.o dialogs.o document.o editor.o encodings.o fil
|
||||
ui_utils.o utils.o win32.o
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CCFLAGS) -c $<
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
# all: binclean $(TARGET) #exec
|
||||
all: $(TARGET)
|
||||
@ -86,7 +91,7 @@ $(TARGET): $(OBJS) $(RES) ../scintilla/scintilla.a ../tagmanager/tagmanager.a
|
||||
$(WIN_LIBS)
|
||||
|
||||
deps.mak:
|
||||
$(CC) -MM $(CCFLAGS) *.c >deps.mak
|
||||
$(CC) -MM $(CFLAGS) *.c >deps.mak
|
||||
|
||||
# Generate header dependencies with "make deps.mak"
|
||||
include deps.mak
|
||||
|
||||
@ -24,10 +24,15 @@ GTK_INCLUDES= \
|
||||
|
||||
INCLUDEDIRS=-I include $(GTK_INCLUDES)
|
||||
|
||||
CCFLAGS=-Wall -O2 -g -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
|
||||
CFLAGS= -O0 -g $(CBASEFLAGS)
|
||||
else
|
||||
CFLAGS=-O2 $(CBASEFLAGS)
|
||||
endif
|
||||
|
||||
.c.o:
|
||||
$(CC) $(REGEX_DEFINES) $(CCFLAGS) -w -c $<
|
||||
$(CC) $(REGEX_DEFINES) $(CFLAGS) -w -c $<
|
||||
|
||||
all: $(COMPLIB)
|
||||
|
||||
@ -43,7 +48,7 @@ tm_symbol.o tm_file_entry.o tm_tagmanager.o
|
||||
$(RANLIB) $@
|
||||
|
||||
deps.mak:
|
||||
$(CC) -MM $(CCFLAGS) *.c >deps.mak
|
||||
$(CC) -MM $(CFLAGS) *.c >deps.mak
|
||||
|
||||
# Generate header dependencies with "make deps.mak"
|
||||
include deps.mak
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user