From b53f36ebc2feb627d9fa79389e3db7b4a14c6d52 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sun, 25 May 2008 23:28:06 +0000 Subject: Add TARGET=debug and fix the debug build. svn path=/trunk/netsurf/; revision=4202 --- Makefile.sources | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile.sources') diff --git a/Makefile.sources b/Makefile.sources index adb73167e..037bcca93 100644 --- a/Makefile.sources +++ b/Makefile.sources @@ -57,6 +57,9 @@ S_GTK := font_pango.c gtk_bitmap.c gtk_gui.c gtk_schedule.c \ gtk_history.c gtk_window.c gtk_filetype.c gtk_download.c S_GTK := $(addprefix gtk/,$(S_GTK)) +# S_DEBUG are sources purely for the debug build +S_DEBUG := netsurfd.c debug_bitmap.c filetyped.c fontd.c +S_DEBUG := $(addprefix debug/,$(S_DEBUG)) # Some extra rules for building the scanner etc. css/css_enum.c css/css_enum.h: css/css_enums css/makeenum @@ -114,6 +117,11 @@ SOURCES := $(S_COMMON) $(S_IMAGE) $(S_BROWSER) $(S_GTK) EXETARGET := nsgtk endif +ifeq ($(TARGET),debug) +SOURCES := $(S_COMMON) $(S_IMAGE) $(S_DEBUG) +EXETARGET := nsdebug +endif + ifeq ($(SOURCES),) $(error Unable to build NetSurf, could not determine set of sources to build) endif -- cgit v1.2.3