diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2018-11-18 19:09:33 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2018-11-18 19:09:33 +0000 |
commit | 7bba051550fc5cba5389c33e4399f9f2f90d1b4b (patch) | |
tree | 25917b3fab9c394004e6c3cae303cf8b5a21a886 /common.mk | |
parent | 5b60c74e9b463c68befa6ebdff6df13a47454d7f (diff) | |
download | netpbm-mirror-7bba051550fc5cba5389c33e4399f9f2f90d1b4b.tar.gz netpbm-mirror-7bba051550fc5cba5389c33e4399f9f2f90d1b4b.tar.xz netpbm-mirror-7bba051550fc5cba5389c33e4399f9f2f90d1b4b.zip |
Do backward compatibility names for merge build in the directories instead of in netpbm.c. Now works for programs that are built conditionally
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3436 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'common.mk')
-rw-r--r-- | common.mk | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/common.mk b/common.mk index 97810cd4..4bfdb6a1 100644 --- a/common.mk +++ b/common.mk @@ -400,14 +400,29 @@ $(PORTBINARIES) $(MATHBINARIES): %: %.o \ "-Dmain=main_$*" \ $(CFLAGS_MERGE) $(CFLAGS_PERSONAL) $(CADD) -o $@ $< -# The "merge try list" is a file full of TRY macro invocations, one for -# each Netpbm program in this directory or any subdirectory that can be -# invoked via the merged Netpbm program. You will find it #included in -# netpbm.c. +# The "merge try list" is a file full of TRY macro invocations, one for each +# Netpbm program in this directory or any subdirectory that can be invoked via +# the merged Netpbm program. There are additional TRYs for backward +# compatility program names (e.g. 'pnmcomp' for 'pamcomp'). You will find the +# merge try list #included in netpbm.c. + +# The file 'mergecomptrylist' contains the backward compatibility TRYs for the +# current directory. Just the current directory itself - not subdirectories. +# Only directories that contain programs with backward compatibility names +# have a 'mergecomptrylist'. The make file for a directory that has +# 'mergecomptrylist' sets make variable HAVE_MERGE_COMPAT to "YES". + +ifeq ($(HAVE_MERGE_COMPAT),YES) +mergetrylist: mergecomptrylist +endif mergetrylist: $(SUBDIRS:%=%/mergetrylist) cat /dev/null $(SUBDIRS:%=%/mergetrylist) >$@ $(SRCDIR)/buildtools/make_merge.sh $(MERGEBINARIES) >>$@ +ifeq ($(HAVE_MERGE_COMPAT),YES) + echo "/* Backward compatibility names from mergecomptrylist: */" >>$@ + cat mergecomptrylist >>$@ +endif # The "merge list" is a list of all the object files from this directory and # any subdirectories that have to be linked into the merged Netpbm program. |