3 # $Header: /cvs/root/Security/SecuritySNACCRuntime/Attic/maketail,v 1.1.1.1 2001/05/18 23:14:04 mb Exp $
5 # Revision 1.1.1.1 2001/05/18 23:14:04 mb
6 # Move from private repository to open source repository
8 # Revision 1.1.1.1 1999/03/16 18:05:50 aram
9 # Originals from SMIME Free Library.
11 # Revision 1.7 1997/02/16 16:46:26 rj
12 # rule to generate $(TCL-P) added
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.
17 # Revision 1.5 1995/07/24 15:02:34 rj
18 # .C.o default rule uses CXXFLAGS instead of CFLAGS for compilation.
20 # dependencies modified to allow c*-lib's recursive dependency-making.
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.
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.
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.
33 # different make versions have different default rules, so we need our own to get a consistent behaviour...
37 $(LEX) $(LFLAGS) -t $< > $@~
41 $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
44 $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
46 .PHONY: depend distfiles
48 depend:: $(ASN1HFILES) $(ASN1CFILES) $(LCFILES) $(YHFILES) $(YCFILES)
51 if [ x"$(DEPENDENCIES)" != x ]; then\
53 $(MKDEP) -f newdep $(CPPFLAGS) -DMAKEDEPEND $(MKDEP_CCINC) $(ASN1CFILES) $(LCFILES) $(YCFILES) $(CFILES);\
54 mv newdep $(DEPENDENCIES);\
58 ifeq "$(MAKE_CLEAN_HACK)" "" # avoid any recompilation when we just want to `make clean'
67 cd $(TOP) && $(MAKE) tcl-p
71 gen-distfiles:: $(DISTFILES)