]> git.saurik.com Git - apple/security.git/blob - SecuritySNACCRuntime/maketail
Security-54.1.7.tar.gz
[apple/security.git] / SecuritySNACCRuntime / maketail
1 # file: maketail
2 #
3 # $Header: /cvs/root/Security/SecuritySNACCRuntime/Attic/maketail,v 1.1.1.1 2001/05/18 23:14:04 mb Exp $
4 # $Log: maketail,v $
5 # Revision 1.1.1.1 2001/05/18 23:14:04 mb
6 # Move from private repository to open source repository
7 #
8 # Revision 1.1.1.1 1999/03/16 18:05:50 aram
9 # Originals from SMIME Free Library.
10 #
11 # Revision 1.7 1997/02/16 16:46:26 rj
12 # rule to generate $(TCL-P) added
13 #
14 # Revision 1.6 1997/02/15 20:33:59 rj
15 # trick to make making clean/clobber working with gmake: set MAKE_CLEAN_HACK (in makefile), and don't include the dependencies files (in maketail) if it is set.
16 #
17 # Revision 1.5 1995/07/24 15:02:34 rj
18 # .C.o default rule uses CXXFLAGS instead of CFLAGS for compilation.
19 #
20 # dependencies modified to allow c*-lib's recursive dependency-making.
21 #
22 # Revision 1.4 1995/02/18 11:53:48 rj
23 # added a small hack to find gcc's hidden include directory to pass it to makedepend. this shall enable X11's makedepend to find .h files a little more the way gcc does.
24 #
25 # Revision 1.3 1994/09/01 01:34:49 rj
26 # gen-distfiles phony target to generate up-to-date versions of the distfiles.
27 #
28 # Revision 1.2 1994/08/31 23:23:24 rj
29 # use a make macro MKDEP (set via autoconf) instead of a fixed name.
30 # generate dependencies for .c files derived from .asn1 files.
31 #
32
33 # different make versions have different default rules, so we need our own to get a consistent behaviour...
34 .l.c:
35 $(REASON)
36 $(RM) $@
37 $(LEX) $(LFLAGS) -t $< > $@~
38 mv $@~ $@
39 .c.o:
40 $(REASON)
41 $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
42 .C.o:
43 $(REASON)
44 $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
45
46 .PHONY: depend distfiles
47
48 depend:: $(ASN1HFILES) $(ASN1CFILES) $(LCFILES) $(YHFILES) $(YCFILES)
49
50 depend::
51 if [ x"$(DEPENDENCIES)" != x ]; then\
52 touch newdep;\
53 $(MKDEP) -f newdep $(CPPFLAGS) -DMAKEDEPEND $(MKDEP_CCINC) $(ASN1CFILES) $(LCFILES) $(YCFILES) $(CFILES);\
54 mv newdep $(DEPENDENCIES);\
55 $(RM) newdep.bak;\
56 fi
57
58 ifeq "$(MAKE_CLEAN_HACK)" "" # avoid any recompilation when we just want to `make clean'
59 include dependencies
60 endif
61
62 dependencies:
63 touch $@
64 $(MAKE) depend
65
66 $(TCL-P):
67 cd $(TOP) && $(MAKE) tcl-p
68 clean::
69 $(RM) dependencies
70
71 gen-distfiles:: $(DISTFILES)
72
73 distfiles::
74 echo "$(DISTFILES)"
75
76 .PHONY: clean clobber
77
78 clobber:: clean