GNUmakefile
1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!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