Makefile
746 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
#!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=..
include $(PRDEPTH)/PRdefs
LIBDEPTH=.
include $(LIBDEPTH)/libdefs
SUBDIRS=monegi nintendo shared
COMMONPREF = libultra
.NOTPARALLEL:
default! $(_FORCE)
$(SUBDIRS_MAKERULE)
clean clobber! $(_FORCE)
$(SUBDIRS_MAKERULE)
for i in $(TARGETS) ; do \
rm -fr $$i/$$i.a $$i/$(MKDEPFILE) $$i/*.o; \
done
install exports! $(_FORCE)
$(SUBDIRS_MAKERULE)
for i in $(TARGETS) ; do \
$(INSTALL) -m 444 -F /usr/lib -src $$i/$$i.a $$i.a; \
done
include $(PRDEPTH)/PRrules