1 | #
|
---|
2 | # ***** BEGIN LICENSE BLOCK *****
|
---|
3 | # Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
---|
4 | #
|
---|
5 | # The contents of this file are subject to the Mozilla Public License Version
|
---|
6 | # 1.1 (the "License"); you may not use this file except in compliance with
|
---|
7 | # the License. You may obtain a copy of the License at
|
---|
8 | # http://www.mozilla.org/MPL/
|
---|
9 | #
|
---|
10 | # Software distributed under the License is distributed on an "AS IS" basis,
|
---|
11 | # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
---|
12 | # for the specific language governing rights and limitations under the
|
---|
13 | # License.
|
---|
14 | #
|
---|
15 | # The Original Code is the Netscape Portable Runtime (NSPR).
|
---|
16 | #
|
---|
17 | # The Initial Developer of the Original Code is
|
---|
18 | # Netscape Communications Corporation.
|
---|
19 | # Portions created by the Initial Developer are Copyright (C) 1998-2000
|
---|
20 | # the Initial Developer. All Rights Reserved.
|
---|
21 | #
|
---|
22 | # Contributor(s):
|
---|
23 | #
|
---|
24 | # Alternatively, the contents of this file may be used under the terms of
|
---|
25 | # either the GNU General Public License Version 2 or later (the "GPL"), or
|
---|
26 | # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
---|
27 | # in which case the provisions of the GPL or the LGPL are applicable instead
|
---|
28 | # of those above. If you wish to allow use of your version of this file only
|
---|
29 | # under the terms of either the GPL or the LGPL, and not to allow others to
|
---|
30 | # use your version of this file under the terms of the MPL, indicate your
|
---|
31 | # decision by deleting the provisions above and replace them with the notice
|
---|
32 | # and other provisions required by the GPL or the LGPL. If you do not delete
|
---|
33 | # the provisions above, a recipient may use your version of this file under
|
---|
34 | # the terms of any one of the MPL, the GPL or the LGPL.
|
---|
35 | #
|
---|
36 | # ***** END LICENSE BLOCK *****
|
---|
37 |
|
---|
38 | #! gmake
|
---|
39 |
|
---|
40 |
|
---|
41 |
|
---|
42 | MOD_DEPTH = ../../..
|
---|
43 | topsrcdir = @top_srcdir@
|
---|
44 | srcdir = @srcdir@
|
---|
45 | VPATH = @srcdir@
|
---|
46 |
|
---|
47 | include $(MOD_DEPTH)/config/autoconf.mk
|
---|
48 |
|
---|
49 | include $(topsrcdir)/config/config.mk
|
---|
50 |
|
---|
51 | W16STDIO = $(MOD_DEPTH)/pr/src/md/windows/$(OBJDIR)/w16stdio.$(OBJ_SUFFIX)
|
---|
52 |
|
---|
53 | CSRCS = poppad.c \
|
---|
54 | popfile.c \
|
---|
55 | popfont.c \
|
---|
56 | popfind.c \
|
---|
57 | popprnt0.c
|
---|
58 |
|
---|
59 |
|
---|
60 | INCLUDES = -I$(dist_includedir)
|
---|
61 | LIBPR = $(dist_libdir)/nspr$(MOD_MAJOR_VERSION).lib
|
---|
62 | LIBPLDS = $(dist_libdir)/plds$(MOD_MAJOR_VERSION).lib
|
---|
63 | TARGETS = $(OBJDIR)/poppad.exe
|
---|
64 | OS_CFLAGS = $(OS_EXE_CFLAGS)
|
---|
65 |
|
---|
66 | include $(topsrcdir)/config/rules.mk
|
---|
67 |
|
---|
68 |
|
---|
69 | ifeq ($(OS_TARGET),WIN16)
|
---|
70 | $(OBJDIR)/poppad.exe: $(OBJS)
|
---|
71 | @$(MAKE_OBJDIR)
|
---|
72 | echo system windows >w16link
|
---|
73 | echo name $@ >>w16link
|
---|
74 | echo option map >>w16link
|
---|
75 | echo option stack=16K >>w16link
|
---|
76 | echo debug $(DEBUGTYPE) all >>w16link
|
---|
77 | echo file >>w16link
|
---|
78 | echo $(OBJDIR)\\poppad.$(OBJ_SUFFIX), >>w16link
|
---|
79 | echo $(OBJDIR)\\popfile.$(OBJ_SUFFIX), >>w16link
|
---|
80 | echo $(OBJDIR)\\popfont.$(OBJ_SUFFIX), >>w16link
|
---|
81 | echo $(OBJDIR)\\popfind.$(OBJ_SUFFIX), >>w16link
|
---|
82 | echo $(OBJDIR)\\popprnt0.$(OBJ_SUFFIX), >>w16link
|
---|
83 | echo $(W16STDIO) >>w16link
|
---|
84 | echo library $(LIBPR) >>w16link
|
---|
85 | echo library $(LIBPLDS) >>w16link
|
---|
86 | echo library clibl, commdlg >>w16link
|
---|
87 | echo library winsock.lib >>w16link
|
---|
88 | wlink @w16link.
|
---|
89 | wrc -bt=windows poppad.rc $(OBJDIR)\\poppad.exe
|
---|
90 | else
|
---|
91 | $(OBJDIR)/poppad.exe: $(OBJS)
|
---|
92 | link $(LDOPTS) $< $(LIBPLC) $(LIBPR) wsock32.lib -out:$@
|
---|
93 | endif
|
---|
94 |
|
---|
95 | export:: $(TARGETS)
|
---|
96 |
|
---|
97 |
|
---|
98 | clean::
|
---|
99 | rm -rf $(TARGETS)
|
---|