[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Controlling the order of compilation

From: Umut Emin
Subject: Controlling the order of compilation
Date: Mon, 27 Jul 2009 22:37:46 +0200

Hello list,

I am using gnu autotools for my project, where i want to control the
order of compilation. My problem is, before any of myproject_SOURCES are
compiled, a glade file has to be converted into an xml file via

Therefore, i need to start the execution with this python script for the
xml conversion and then all the c code(myproject_SOURCES). In order to
make it self-explainetory, i have written that simple command as rule
that has to be executed at the beginning of compilation. How is the best
way to do it? And is it possible also to check a symbol value from
config.h to decide between rules to execute (step1_b, step1_bn)?

This is how my src/ looks like:

bin_PROGRAMS = letterizer
letterizer_SOURCES = fileio.c interops.c xmlfile.c letterizer.c
lttrzr_gui.c signals.c 
AM_CPPFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include
-I/usr/include/atk-1.0 \
              -I/usr/include/cairo -I/usr/include/pango-1.0 \
              -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
-I/usr/include/freetype2 \
              -I/usr/include/libpng12 -I/usr/include/pixman-1\
letterizer_LDADD =-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0
                  -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 
                  -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0\
                  -lm -lxml2 
letterizer_CFLAGS = -export-dynamic

# to begin the compilation with, builder exists
        gtk-builder-convert -o data/step1.xml

# to begin the compilation with, builder doesn't exist
        cp step1_preconv.xml data/step1.xml

Many thanks,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]