4 # Second part of make rules, included in ptlib.mak and pwlib.mak.
5 # Note: Do not put any targets in the file. This should defaine variables
6 # only, as targets are all in common.mak
8 # Portable Windows Library
10 # Copyright (c) 1993-1998 Equivalence Pty. Ltd.
12 # The contents of this file are subject to the Mozilla Public License
13 # Version 1.0 (the "License"); you may not use this file except in
14 # compliance with the License. You may obtain a copy of the License at
15 # http://www.mozilla.org/MPL/
17 # Software distributed under the License is distributed on an "AS IS"
18 # basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
19 # the License for the specific language governing rights and limitations
22 # The Original Code is Portable Windows Library.
24 # The Initial Developer of the Original Code is Equivalence Pty. Ltd.
26 # Portions are Copyright (C) 1993 Free Software Foundation, Inc.
27 # All Rights Reserved.
29 # Contributor(s): ______________________________________.
32 # Revision 1.15 2001/06/15 00:58:00 robertj
33 # Allowed for empty GUI type.
35 # Revision 1.14 2000/06/26 13:20:49 robertj
36 # Added ability to append resources to existing file.
38 # Revision 1.13 2000/03/20 22:43:10 craigs
39 # Added totally new mechanism for detecting GUI
41 # Revision 1.12 2000/03/03 00:37:42 robertj
42 # Fixed problem for when have GUI environment variable set, always builds GUI!
44 # Revision 1.11 2000/02/24 11:02:11 craigs
45 # Fixed problems with PW make
47 # Revision 1.10 2000/02/04 19:33:25 craigs
48 # Added ability to create non-shared versions of programs
50 # Revision 1.9 2000/01/25 04:38:52 robertj
51 # Another fix for shared libraries
53 # Revision 1.8 2000/01/25 04:05:23 robertj
54 # Fixed make files for GUI systems and moved object directories to lib directory.
56 # Revision 1.7 1999/10/24 15:29:53 craigs
57 # Changed default GUI for Unix to Motif
59 # Revision 1.6 1999/01/16 09:56:26 robertj
60 # Changed some macros to more informative names.
62 # Revision 1.5 1998/12/02 02:37:06 robertj
63 # New directory structure.
67 include $(PWLIBDIR
)/make
/defaultgui.mak
71 include $(PWLIBDIR
)/make
/$(GUI_TYPE
).mak
74 GUI_SRC_NAME
= $(GUI_TYPE
)
77 GUI_INC_DIR
= $(PWLIBDIR
)/include/pwlib
/$(GUI_SRC_NAME
)
79 PWLIB
= pw_
$(GUI_TYPE
)_
$(PLATFORM_TYPE
)_
$(OBJ_SUFFIX
)
82 # add GUI directory to include path
84 STDCCFLAGS
+= -I
$(GUI_INC_DIR
)
89 LDLIBS
+= -l
$(PWLIB_BASE
)$(LIB_TYPE
)
95 # rules for resource compilation
97 PWRC_DIR
= $(PWLIBDIR
)/tools
/pwrc
98 PWRC
= $(PWRC_DIR
)/obj_
$(GUI_TYPE
)_
$(PLATFORM_TYPE
)_r
/pwrc
99 PWRC_CMD
= $(PWRC
) -g
$(GUI_TYPE
)
102 # if we are using a resource file, then define the required files
106 RESHDR
= $(RESOURCE
:prc
=h
)
107 RESCODE
= $(RESOURCE
:prc
=res.
cxx)
108 RESCXX
= $(RESOURCE
:prc
=cxx)
109 RESOBJS
= $(RESCXX
:.
cxx=.o
) $(RESCODE
:.
cxx=.o
)
110 RCFLAGS
:= $(RCFLAGS
) -I
"$(GUI_INC_DIR);$(PWLIBDIR)/include"
113 # create list of source files containing resource file if required
115 SOURCES
:= $(RESCODE
) $(RESCXX
) $(SOURCES
)
118 # create list of object files containing resource file if required
120 CLEAN_FILES
:= $(CLEAN_FILES
) $(RESHDR
) $(RESCODE
) $(RESCXX
) $(RESOBJS
)