Added ifdef for Zeta build
[pwlib.git] / tools / asnparser / Makefile
blobec15d98e59cdb979726db77afc7fce04b93de8c4
2 # Makefile
4 # Make file for ASN parser
6 # Portable Windows Library
8 # Copyright (c) 1998-2000 Equivalence Pty. Ltd.
10 # The contents of this file are subject to the Mozilla Public License
11 # Version 1.0 (the "License"); you may not use this file except in
12 # compliance with the License. You may obtain a copy of the License at
13 # http://www.mozilla.org/MPL/
15 # Software distributed under the License is distributed on an "AS IS"
16 # basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
17 # the License for the specific language governing rights and limitations
18 # under the License.
20 # The Original Code is Portable Windows Library.
22 # The Initial Developer of the Original Code is Equivalence Pty. Ltd.
24 # Portions are Copyright (C) 1993 Free Software Foundation, Inc.
25 # All Rights Reserved.
27 # Contributor(s): ______________________________________.
29 # $Log$
30 # Revision 1.12 2004/06/01 07:32:46 csoutheren
31 # Removed warning on Linux
33 # Revision 1.11 2003/07/28 18:29:41 dsandras
34 # Patch to help with make -jN thanks to Alexander Larsson <alexl@redhat.com>.
36 # Revision 1.10 2002/01/27 00:07:10 craigs
37 # Added rule to create asnparser.txt file
39 # Revision 1.9 2000/04/26 01:03:46 robertj
40 # Removed tarfile creation target, this is done differently now.
42 # Revision 1.8 2000/04/06 20:18:57 craigs
43 # Removed local install target
45 # Revision 1.7 2000/01/22 22:39:58 robertj
46 # Added missing license and log messages comment.
50 ifndef PWLIBDIR
51 PWLIBDIR=$(HOME)/pwlib
52 endif
54 PROG = asnparser
55 SOURCES = asn_grammar.cxx asn_lex.cxx main.cxx
57 CLEAN_FILES = asn_grammar.cxx asn_grammar.h asn_grammar.output asn_lex.cxx asnparser.txt
60 include $(PWLIBDIR)/make/ptlib.mak
62 asn_grammar.cxx: asn_grammar.y
63 @if [ ! -d $(OBJDIR) ] ; then mkdir $(OBJDIR) ; fi
64 bison -t -v -d -o $* $<
65 mv $* $*.cxx
67 main.cxx: asn_grammar.cxx
69 asn_lex.cxx: asn_lex.l
70 flex -t $< > $@
72 asnparser.txt: asnparser.1
73 nroff -man $< | col -b > $@
75 test:
76 ./obj_linux_x86_d/asnparser -s2 -m H225 -r MULTIMEDIA-SYSTEM-CONTROL=H245 -c h225.asn