From 7f1478318fa735f8d59652ff6ecffb695d61a2de Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Mon, 23 Mar 1998 08:43:08 +0000 Subject: [PATCH] new gtk build stuff git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@707 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome/Makefile | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/gnome/Makefile b/src/gnome/Makefile index 6867b07101..16f783da60 100644 --- a/src/gnome/Makefile +++ b/src/gnome/Makefile @@ -4,6 +4,8 @@ #******************************************************************** #* Makefile -- makefile for xacc/src/gtk * #* Copyright (C) 1997 Robin Clark * +#* Copyright (C) 1998 Linas Vepstas * +#* Copyright (C) 1998 Rob Browning * #* * #* This program is free software; you can redistribute it and/or * #* modify it under the terms of the GNU General Public License as * @@ -40,10 +42,19 @@ INCLPATH = -I/usr/include \ # and general brokenness # -I./../../lib/libhtmlw -CFLAGS = -g -Wall -LFLAGS = -g -Wall +# +# CFLAGS and LIBS are built automatically with gtk-config. +# gtk-config is now "guaranteed" to be installed on any host +# where gtk's installed and is supposed to report the compiler +# options needed for the build. + +CFLAGS := $(shell gtk-config -cflags) -g -Wall +LFLAGS := -g -Wall + # LIBS = -lXpm -lXm -lXmu -lXt -lXext -lSM -lICE -lX11 -lpng -ljpeg -lz -lm -LIBS = -lgtk -lgdk -lglib -lXpm -lXext -lXmu -lXt -lXext -lSM -lICE -lX11 -lpng -ljpeg -lz -lm +# LIBS = -lgtk -lgdk -lglib -lXpm -lXext -lXmu -lXt -lXext \ +# -lSM -lICE -lX11 -lpng -ljpeg -lz -lm +LIBS := $(shell gtk-config -libs) LIBPATH = -L/lib -L/usr/lib -L/usr/local/lib -L/usr/X11R6/lib/. TARGET = ../../xacc.gtk.bin