Makefile
上传用户:hzhsqp
上传日期:2007-01-06
资源大小:1600k
文件大小:2k
- #
- # Makefile
- #
- # Resouce compiler make rules
- #
- # Portable Windows Library
- #
- # Copyright (c) 1993-1998 Equivalence Pty. Ltd.
- #
- # The contents of this file are subject to the Mozilla Public License
- # Version 1.0 (the "License"); you may not use this file except in
- # compliance with the License. You may obtain a copy of the License at
- # http://www.mozilla.org/MPL/
- #
- # Software distributed under the License is distributed on an "AS IS"
- # basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
- # the License for the specific language governing rights and limitations
- # under the License.
- #
- # The Original Code is Portable Windows Library.
- #
- # The Initial Developer of the Original Code is Equivalence Pty. Ltd.
- #
- # Portions are Copyright (C) 1993 Free Software Foundation, Inc.
- # All Rights Reserved.
- #
- # Contributor(s): ______________________________________.
- #
- PROG = pwrc
- COMMON_SOURCES = main.cxx codegen.cxx unix.cxx
- SOURCES = pr_gramm.cxx pr_lex.cxx $(COMMON_SOURCES)
- CLEAN_FILES = pr_gramm.cxx pr_gramm.h pr_gramm.output pr_lex.cxx
- ifndef PWLIBDIR
- PWLIBDIR=$(HOME)/pwlib
- endif
- ifndef REALGUI
- include $(PWLIBDIR)/make/defaultgui.mak
- REALGUI := $(GUI_TYPE)
- GUI_TYPE=
- endif
- OBJDIR = ./obj_$(REALGUI)_$(PLATFORM_TYPE)_$(OBJ_SUFFIX)
- STDCCFLAGS = -I$(PWLIBDIR)/include/pwlib/$(REALGUI)
- include $(PWLIBDIR)/make/ptlib.mak
- include $(PWLIBDIR)/make/$(REALGUI).mak
- pr_gramm.cxx: pr_gramm.y
- @if [ ! -d $(OBJDIR) ] ; then mkdir $(OBJDIR) ; fi
- bison -t -v -d -o $* $<
- mv $* $*.cxx
- pr_lex.cxx: pr_lex.l
- flex -t $< > $@