Monday, January 10, 2005

Ptxdist build/Makefile system

PTXDIST Build system use a backbone of targets.

The main makefile in the root directory contains the following

PACKAGES=
export TAR TOPDIR STATEDIR PACKAGES


PACKAGES variable is now "blank" and will be added to dependant
on the values found in Config.in.

For example the following config in the Config.in file
.....
config ZLIB:
bool "zlib"
.....
Results in option:

[ ] zlib

when you call make menuconfig.

which creates the define PTXCONF_ZLIB

ifeq (y, $(PTXCONF_ZLIB))
PACKAGES += zlib
endif

and tada the whole makefile is turned "on" or "off".



makefile.make

No comments: