xref: /trunk/main/crashrep/source/win32/makefile.mk (revision 752c0af7)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24PRJ=..$/..
25
26PRJNAME=crashrep
27TARGET=soreport
28LIBTARGET=NO
29ENABLE_EXCEPTIONS=TRUE
30TARGETTYPE=GUI
31
32# --- Settings -----------------------------------------------------
33
34.INCLUDE :  settings.mk
35
36# --- Resources ----------------------------------------------------
37
38RCFILES=$(RES)$/$(TARGET).rc
39
40# --- Files --------------------------------------------------------
41
42OBJFILES=\
43	$(OBJ)$/soreport.obj\
44	$(OBJ)$/base64.obj
45
46.IF "$(WITH_LANG)"!=""
47ULFDIR:=$(COMMONMISC)$/crash_res
48.ELSE			# "$(WITH_LANG)"!=""
49ULFDIR:=..$/all
50.ENDIF			# "$(WITH_LANG)"!=""
51LNGFILES=$(ULFDIR)$/crashrep.ulf
52
53APP1OBJS=$(OBJFILES)
54
55APP1NOSAL=TRUE
56
57APP1TARGET=$(TARGET)
58APP1RPATH=BRAND
59
60#SHL1STDLIBS=$(SALLIB)
61
62STDLIB1=\
63	$(SALLIB)\
64	$(GDI32LIB)\
65	$(COMCTL32LIB)\
66	$(COMDLG32LIB)\
67	$(ADVAPI32LIB)\
68	$(WSOCK32LIB)\
69	$(SHELL32LIB)\
70	$(DBGHELPLIB)
71
72APP1NOSVRES=$(RES)$/$(TARGET).res
73
74# --- Targets ------------------------------------------------------
75
76.INCLUDE :	target.mk
77
78$(OBJ)$/soreport.obj: $(INCCOM)$/_version.h
79
80# Generate the native Windows resource file
81# using lngconvex.exe
82
83$(RCFILES) : $(LNGFILES) makefile.mk rcfooter.txt rcheader.txt rctemplate.txt ctrylnglist.txt
84    $(LNGCONVEX) -ulf $(ULFDIR)$/crashrep.ulf -rc $(RES)$/$(TARGET).rc  -rct rctemplate.txt -rch rcheader.txt -rcf rcfooter.txt
85
86