GNUmakefile 1.26 KB
#!smake
#
# Makefile for libleo directory
#
# For each of the TARGETS specified in libdefs, create the corresponding
# archive in the subdirectory of the same name.  Each subdirectory will
# contain a 'locdefs' file which tailors the build for each library.
#
# As a default, we use the alps original archive to add API on it. 
# If you want to recompile under your current environment, define RECOMPILE
# before you make org/ directory (or run "make RECOMPILE=").
#

PRDEPTH=$(ROOT)/PR
include $(PRDEPTH)/PRdefs

LIBDEPTH=.
include $(LIBDEPTH)/libdefs

EXPORTS_SUBDIRS=org api libddwrite
HEADERS_SUBDIRS=org libddwrite
SUBDIRS=org api libddwrite

COMMONPREF = libleo

.NOTPARALLEL:

default: $(_FORCE)
	$(SUBDIRS_MAKERULE)

headers:$(_FORCE)
	$(HEADERS_SUBDIRS_MAKERULE)

clobber: $(_FORCE)
	for i in $(TARGETS) ; do \
		rm -fr $$i/$$i.a $$i/$(MKDEPFILE) $$i/*.o; \
	done
	rm -fr libddwrite/libleo_sp.a
	@echo "\t(cd org; $(MAKE) $${RULE:=$@})"
	@(cd org; ${MAKE} $${RULE:=$@})

exports: $(_FORCE)
	$(EXPORTS_SUBDIRS_MAKERULE)
	for i in $(TARGETS) ; do \
		$(INSTALL) -m 444 -F /usr/lib -src $$i/$$i.a $$i.a; \
	done

install: $(_FORCE)
	$(EXPORTS_SUBDIRS_MAKERULE)
	for i in $(INSTTARGETS) ; do \
		$(INSTALL) -m 444 -F /usr/lib -src $$i/$$i.a $$i.a; \
	done

include $(PRDEPTH)/PRrules