Added a parameter to semaphore constructor to avoid ambiguity
[pwlib.git] / tools / pwrc / Makefile
blobc433fb1db9cd6db70b41a3c43e917e16f718a460
2 # Makefile
4 # Resouce compiler make rules
6 # Portable Windows Library
8 # Copyright (c) 1993-1998 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): ______________________________________.
30 PROG = pwrc
31 COMMON_SOURCES = main.cxx codegen.cxx unix.cxx
32 SOURCES = pr_gramm.cxx pr_lex.cxx $(COMMON_SOURCES)
34 CLEAN_FILES = pr_gramm.cxx pr_gramm.h pr_gramm.output pr_lex.cxx
36 ifndef PWLIBDIR
37 PWLIBDIR=$(HOME)/pwlib
38 endif
40 ifndef REALGUI
41 include $(PWLIBDIR)/make/defaultgui.mak
42 REALGUI := $(GUI_TYPE)
43 GUI_TYPE=
44 endif
46 OBJDIR = ./obj_$(REALGUI)_$(PLATFORM_TYPE)_$(OBJ_SUFFIX)
48 STDCCFLAGS = -I$(PWLIBDIR)/include/pwlib/$(REALGUI)
51 include $(PWLIBDIR)/make/ptlib.mak
52 include $(PWLIBDIR)/make/$(REALGUI).mak
54 pr_gramm.cxx: pr_gramm.y
55 @if [ ! -d $(OBJDIR) ] ; then mkdir $(OBJDIR) ; fi
56 bison -t -v -d -o $* $<
57 mv $* $*.cxx
59 pr_lex.cxx: pr_lex.l
60 flex -t $< > $@