]> Pileus Git - ~andy/gtk/blobdiff - gdk/Makefile.am
don't use += before =
[~andy/gtk] / gdk / Makefile.am
index 74a22fe00b36980990844db56c8b9b1177c85be4..c61af55ba67e17716e189e79913ccf675f110ca4 100644 (file)
@@ -1,13 +1,14 @@
 ## Makefile.am for gtk+/gdk
 
 SUBDIRS=$(gdktarget)
-DIST_SUBDIRS=linux-fb nanox win32 x11
-
-EXTRA_DIST =   \
-       gdkconfig.h.win32 \
-       gdk.def \
-       makefile.mingw \
-       makefile.mingw.in \
+DIST_SUBDIRS=linux-fb win32 x11
+
+EXTRA_DIST =                   \
+       gdkconfig.h.win32       \
+       gdk.def                 \
+       makefile.mingw          \
+       makefile.mingw.in       \
+       makeenums.pl            \
        makefile.msc
 
 common_includes = @STRIP_BEGIN@        \
@@ -16,11 +17,7 @@ common_includes = @STRIP_BEGIN@      \
        -I$(top_builddir)/gdk           \
        -I$(top_srcdir)/gdk-pixbuf      \
        @GTK_DEBUG_FLAGS@               \
-       @GTK_XIM_FLAGS@                 \
-       @GTK_LOCALE_FLAGS@              \
-       @PANGO_CFLAGS@                  \
-       @GLIB_CFLAGS@                   \
-       @more_cflags@                   \
+       @GDK_DEP_CFLAGS@                \
 @STRIP_END@
 
 INCLUDES = $(common_includes)
@@ -33,12 +30,9 @@ LDFLAGS = @STRIP_BEGIN@                                      \
        -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)    \
        -export-dynamic                                         \
        -rpath @prefix@/lib                                     \
-       -L../gdk-pixbuf/.libs -lgdk_pixbuf-1.3                  \
-       @PANGO_LIBS@                                            \
-       @GLIB_DEPLIBS@                                          \
-       @more_ldflags@                                          \
-       @more_libs@                                             \
-       -lm                                                     \
+       @LIBTOOL_EXPORT_OPTIONS@                                \
+       $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-1.3.la         \
+       @GDK_DEP_LIBS@                                          \
 @STRIP_END@
 
 #
@@ -51,9 +45,7 @@ LDFLAGS = @STRIP_BEGIN@                                       \
 #
 gdk_public_h_sources = @STRIP_BEGIN@ \
        gdk.h           \
-       gdkcc.h         \
        gdkcolor.h      \
-       gdkcompat.h     \
        gdkcursor.h     \
        gdkcursors.h    \
        gdkdnd.h        \
@@ -63,13 +55,12 @@ gdk_public_h_sources = @STRIP_BEGIN@ \
        gdkgc.h         \
        gdkkeysyms.h    \
        gdki18n.h       \
-       gdkim.h         \
        gdkimage.h      \
        gdkinput.h      \
+       gdkkeys.h       \
        gdkpango.h      \
        gdkpixbuf.h     \
        gdkpixmap.h     \
-       gdkprivate.h    \
        gdkproperty.h   \
        gdkregion.h     \
        gdkrgb.h        \
@@ -79,6 +70,12 @@ gdk_public_h_sources = @STRIP_BEGIN@ \
        gdkwindow.h     \
 @STRIP_END@
 
+gdk_headers = @STRIP_BEGIN@       \
+       $(gdk_public_h_sources)   \
+       gdkenumtypes.h            \
+       gdkprivate.h              \
+@STRIP_END@
+
 gdk_c_sources = @STRIP_BEGIN@  \
        gdk.c                   \
        gdkcolor.c              \
@@ -88,6 +85,7 @@ gdk_c_sources = @STRIP_BEGIN@         \
        gdkfont.c               \
        gdkgc.c                 \
        gdkglobals.c            \
+       gdkkeys.c               \
        gdkkeyuni.c             \
        gdkimage.c              \
        gdkinternals.h          \
@@ -115,8 +113,8 @@ libgdk_x11_includedir = $(includedir)/gtk-2.0/gdk
 libgdk_x11_1_3_la_LIBADD = \
        $(gtarget)/libgdk-$(gtarget).la 
 
-libgdk_x11_include_HEADERS = $(gdk_public_h_sources)
-libgdk_x11_1_3_la_SOURCES = $(gdk_c_sources)
+libgdk_x11_include_HEADERS = $(gdk_headers)
+libgdk_x11_1_3_la_SOURCES = $(gdk_c_sources) gdkenumtypes.c
 endif
 
 if USE_NANOX
@@ -125,8 +123,8 @@ libgdk_nanox_includedir = $(includedir)/gtk-2.0/gdk
 libgdk_nanox_1_3_la_LIBADD = \
        $(gtarget)/libgdk-$(gtarget).la 
 
-libgdk_nanox_include_HEADERS = $(gdk_public_h_sources)
-libgdk_nanox_1_3_la_SOURCES = $(gdk_c_sources)
+libgdk_nanox_include_HEADERS = $(gdk_headers)
+libgdk_nanox_1_3_la_SOURCES = $(gdk_c_sources) gdkenumtypes.c
 endif
 
 if USE_LINUX_FB
@@ -135,8 +133,8 @@ libgdk_linux_fb_includedir = $(includedir)/gtk-2.0/gdk
 libgdk_linux_fb_1_3_la_LIBADD = \
        $(gtarget)/libgdk-$(gtarget).la 
 
-libgdk_linux_fb_include_HEADERS = $(gdk_public_h_sources)
-libgdk_linux_fb_1_3_la_SOURCES = $(gdk_c_sources)
+libgdk_linux_fb_include_HEADERS = $(gdk_headers)
+libgdk_linux_fb_1_3_la_SOURCES = $(gdk_c_sources) gdkenumtypes.c
 endif
 
 # now define the real one to workaround automake's mishandling
@@ -144,10 +142,9 @@ lib_LTLIBRARIES = $(extra)
 
 EXTRA_LTLIBRARIES = libgdk-x11-1.3.la libgdk-nanox-1.3.la libgdk-linux-fb-1.3.la
 
-MAINTAINERCLEANFILES +=
-EXTRA_HEADERS +=
-EXTRA_DIST +=
-EXTRA_DIST +=
+MAINTAINERCLEANFILES =
+EXTRA_HEADERS =
+EXTRA_DIST =
 
 #
 # rules to generate built sources
@@ -173,7 +170,17 @@ install-exec-local: gdkconfig.h
        if test -r $$file && cmp -s gdkconfig.h $$file; then :; \
        else $(INSTALL_DATA) gdkconfig.h $$file; fi
 
-BUILT_SOURCES = stamp-gc-h #note: not gdkconfig.h
+#note: not gdkconfig.h
+BUILT_SOURCES = stamp-gc-h @REBUILD@ gdkenumtypes.c gdkenumtypes.h
+
+gdkenumtypes.h: @REBUILD@ $(gdk_public_h_sources) $(srcdir)/makeenums.pl
+       cd $(srcdir) \
+       && $(PERL) ./makeenums.pl include $(gdk_public_h_sources) > gdkenumtypes.h
+
+gdkenumtypes.c: @REBUILD@ $(gdk_public_h_sources) $(srcdir)/makeenums.pl
+       cd $(srcdir) \
+       && $(PERL) ./makeenums.pl cfile $(gdk_public_h_sources) > gdkenumtypes.c
+
 gdkconfig.h: stamp-gc-h
        @if test -f gdkconfig.h; then :; \
        else rm -f stamp-gc-h; $(MAKE) stamp-gc-h; fi
@@ -181,9 +188,6 @@ stamp-gc-h: ../config.status
        cd .. && CONFIG_FILES= CONFIG_HEADERS= CONFIG_OTHER=gdk/gdkconfig.h ./config.status
        echo timestamp > stamp-gc-h
 
-makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/gdk/makefile.mingw.in
-       cd $(top_builddir) && CONFIG_FILES=gdk/$@ CONFIG_HEADERS= $(SHELL) ./config.status
-
 .PHONY: files
 
 files: