Commit 64a31db9103978cd9e6de8399cc765c86fbf0f22
1 parent
c203e40d
Exists in
master
and in
1 other branch
Debugging msvc
Showing
4 changed files
with
144 additions
and
0 deletions
Show diff stats
client/src/testprogram/testprogram.cc
ipc3270.exp
No preview for this file type
... | ... | @@ -0,0 +1,135 @@ |
1 | +# | |
2 | +# "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 | |
3 | +# (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a | |
4 | +# aplicativos mainframe. Registro no INPI sob o nome G3270. | |
5 | +# | |
6 | +# Copyright (C) <2008> <Banco do Brasil S.A.> | |
7 | +# | |
8 | +# Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob | |
9 | +# os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela | |
10 | +# Free Software Foundation. | |
11 | +# | |
12 | +# Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER | |
13 | +# GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO | |
14 | +# A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para | |
15 | +# obter mais detalhes. | |
16 | +# | |
17 | +# Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este | |
18 | +# programa; se não, escreva para a Free Software Foundation, Inc., 59 Temple | |
19 | +# Place, Suite 330, Boston, MA, 02111-1307, USA | |
20 | +# | |
21 | +# Contatos: | |
22 | +# | |
23 | +# perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | |
24 | +# erico.mendonca@gmail.com (Erico Mascarenhas de Mendonça) | |
25 | +# | |
26 | + | |
27 | +!include "$(PW3270_SDK_PATH)\lib3270.mak" | |
28 | + | |
29 | +OBJ_FILES= \ | |
30 | + client\src\core\abstract.obj \ | |
31 | + client\src\core\actions.obj \ | |
32 | + client\src\core\attribute.obj \ | |
33 | + client\src\core\constants.obj \ | |
34 | + client\src\core\events.obj \ | |
35 | + client\src\core\session.obj \ | |
36 | + client\src\core\windows\attribute.obj \ | |
37 | + client\src\core\windows\pop.obj \ | |
38 | + client\src\core\windows\push.obj \ | |
39 | + client\src\core\windows\request.obj \ | |
40 | + client\src\core\windows\tools.obj \ | |
41 | + client\src\host\actions.obj \ | |
42 | + client\src\host\init.obj \ | |
43 | + client\src\host\pop.obj \ | |
44 | + client\src\host\properties.obj \ | |
45 | + client\src\host\push.obj \ | |
46 | + client\src\host\states.obj \ | |
47 | + client\src\host\stream.obj \ | |
48 | + client\src\host\string.obj \ | |
49 | + client\src\session\action.obj \ | |
50 | + client\src\session\get.obj \ | |
51 | + client\src\session\set.obj \ | |
52 | + client\src\session\tools.obj \ | |
53 | + client\src\session\local\actions.obj \ | |
54 | + client\src\session\local\attribute.obj \ | |
55 | + client\src\session\local\events.obj \ | |
56 | + client\src\session\local\get.obj \ | |
57 | + client\src\session\local\init.obj \ | |
58 | + client\src\session\local\set.obj \ | |
59 | + client\src\session\local\wait.obj \ | |
60 | + client\src\session\remote\actions.obj \ | |
61 | + client\src\session\remote\attribute.obj \ | |
62 | + client\src\session\remote\get.obj \ | |
63 | + client\src\session\remote\properties.obj \ | |
64 | + client\src\session\remote\set.obj \ | |
65 | + client\src\session\remote\tools.obj \ | |
66 | + client\src\session\remote\wait.obj \ | |
67 | + client\src\session\remote\windows\request.obj \ | |
68 | + client\src\session\remote\windows\session.obj | |
69 | + | |
70 | +.cc.obj: | |
71 | + @echo Compiling... | |
72 | + @$(CPP) \ | |
73 | + /c \ | |
74 | + /DPACKAGE_NAME=\"ipc3270\" \ | |
75 | + /DPRODUCT_NAME=$(PRODUCT_NAME) \ | |
76 | + /DLIB3270_NAME=$(LIB3270_NAME) \ | |
77 | + /DDEBUG=1 \ | |
78 | + /I".\client\src\include" \ | |
79 | + /I"$(PW3270_SDK_PATH)\include" \ | |
80 | + /EHsc \ | |
81 | + /Fo"$@" \ | |
82 | + $< | |
83 | + | |
84 | +testprogram.exe: \ | |
85 | + client\src\testprogram\testprogram.obj \ | |
86 | + ipc3270.dll | |
87 | + @echo Build exe file.... | |
88 | + @link \ | |
89 | + /nologo \ | |
90 | + /OUT:"$@" \ | |
91 | + client\src\testprogram\testprogram.obj | |
92 | + | |
93 | +install: \ | |
94 | + $(OBJ_FILES) \ | |
95 | + $(LIB3270_NAME).lib | |
96 | + @echo Building library... | |
97 | + @-mkdir "$(PW3270_SDK_PATH)\lib" | |
98 | + @lib \ | |
99 | + /NOLOGO \ | |
100 | + /OUT:"$(PW3270_SDK_PATH)\lib\ipc3270.lib" \ | |
101 | + $(OBJ_FILES) | |
102 | + | |
103 | + | |
104 | + @copy "$(LIB3270_NAME).lib" "$(PW3270_SDK_PATH)\lib\$(LIB3270_NAME).lib" | |
105 | + @-mkdir "$(PW3270_SDK_PATH)\include\lib3270\ipc" | |
106 | + @copy "client\src\include\lib3270\ipc\*.h" "$(PW3270_SDK_PATH)\include\lib3270\ipc" | |
107 | + @copy "client\src\include\lib3270\*.h" "$(PW3270_SDK_PATH)\include\lib3270" | |
108 | + | |
109 | +ipc3270.dll: \ | |
110 | + $(OBJ_FILES) \ | |
111 | + client\src\core\windows\dynamic\init.obj \ | |
112 | + $(LIB3270_NAME).lib | |
113 | + @echo Build dll file.... | |
114 | + link \ | |
115 | + /NOLOGO \ | |
116 | + /DLL \ | |
117 | + /OUT:"$@" \ | |
118 | + $(OBJ_FILES) \ | |
119 | + client\src\core\windows\dynamic\init.obj \ | |
120 | + /DELAYLOAD:$(LIB3270_NAME).dll | |
121 | + | |
122 | +$(LIB3270_NAME).lib: | |
123 | + lib \ | |
124 | + /def:"$(PW3270_SDK_PATH)\def\$(LIB3270_NAME).def" \ | |
125 | + /out:$(LIB3270_NAME).lib | |
126 | + | |
127 | +clean: | |
128 | + del \ | |
129 | + $(LIB3270_NAME).lib \ | |
130 | + $(LIB3270_NAME).dll \ | |
131 | + ipc3270.lib \ | |
132 | + ipc3270.dll \ | |
133 | + $(OBJ_FILES) \ | |
134 | + client\src\core\windows\dynamic\init.obj \ | |
135 | + testprogram.* | ... | ... |