Makefile
969 Bytes
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
#!smake
#
# Makefile for libultra 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.
#
PRDEPTH=$(ROOT)/PR
include $(PRDEPTH)/PRdefs
LIBDEPTH=..
include $(LIBDEPTH)/libdefs
SUBDIRS=leo iplleo writerleo
HEADERS_SUBDIRS=include
COMMONPREF = org
.NOTPARALLEL:
install exports default! $(_FORCE)
@for d in $(SUBDIRS); do \
if test ! -d $$d; then \
if test "$(NOSUBMESG)" = "" ; then \
echo "SKIPPING $$d: No such directory."; \
fi \
else \
(cd $$d; for m in Makefile*; do \
echo "\t(cd $$d; $(MAKE) -f $$m $${RULE:=$@})"; \
${MAKE} -f $$m $${RULE:=$@}; \
done); \
fi ; \
done
headers:$(_FORCE)
$(HEADERS_SUBDIRS_MAKERULE)
clean clobber! $(_FORCE)
for i in $(SUBDIRS) ; do \
rm -fr $$i/$$i.a $$i/$(MKDEPFILE) $$i/*.o; \
done
include $(PRDEPTH)/PRrules