]> git.saurik.com Git - apple/security.git/blob - SecuritySNACCRuntime/c++-examples/makefile
Security-28.tar.gz
[apple/security.git] / SecuritySNACCRuntime / c++-examples / makefile
1 # file: .../c++-examples/makefile
2
3 # Apple change: simple doesn't run (yet).
4 #SUBDIRS = test-lib simple any snmp
5 SUBDIRS = test-lib any snmp
6
7 #-------------------------------------------------------------------------------
8
9 .PHONY: implicit_default
10 implicit_default::
11 $(MAKE) subdirs
12
13 subdirs:: $(SUBDIRS)
14 $(SUBDIRS)::
15 cd $@ && $(MAKE) $(subtarget)
16
17 # the following hack is needed for older make versions (gmake doesn't need it):
18 init-depend::
19 @for dir in $(SUBDIRS); do\
20 test -f $$dir/dependencies || touch $$dir/dependencies;\
21 done
22
23 .DEFAULT::
24 $(MAKE) subdirs subtarget=$@
25
26 distfiles::
27 echo makefile
28 for dir in $(SUBDIRS); do\
29 subfiles=`cd $$dir && $(MAKE) -s $@`;\
30 for file in $$subfiles; do\
31 echo "$$dir/$$file";\
32 done;\
33 done
34
35 # dummy:
36 install::