Commit 4a4102e352b1c73ad72f9c58917fe23b50aca5ba
1 parent
07c9e843
Exists in
master
and in
4 other branches
Removing obsolete code.
Showing
3 changed files
with
0 additions
and
554 deletions
Show diff stats
src/include/plugin.mak.in
@@ -1,143 +0,0 @@ | @@ -1,143 +0,0 @@ | ||
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 | -PACKAGE_NAME=@PACKAGE_NAME@ | ||
28 | -PACKAGE_TARNAME=@PACKAGE_TARNAME@ | ||
29 | - | ||
30 | -#---[ Sources ]---------------------------------------------------------------- | ||
31 | - | ||
32 | -DEPENDS=*.h ../../include/*.h ../../include/lib3270/*.h Makefile | ||
33 | - | ||
34 | -#---[ Paths ]------------------------------------------------------------------ | ||
35 | - | ||
36 | -prefix=@prefix@ | ||
37 | -exec_prefix=@exec_prefix@ | ||
38 | -bindir=@bindir@ | ||
39 | -libdir=@libdir@ | ||
40 | -datarootdir=@datarootdir@ | ||
41 | -localedir=@localedir@ | ||
42 | - | ||
43 | -ROOTDIR ?= . | ||
44 | -OBJDIR ?= $(ROOTDIR)/.obj | ||
45 | -BINDIR ?= $(ROOTDIR)/.bin | ||
46 | -BINDBG ?= $(BINDIR)/Debug | ||
47 | -BINRLS ?= $(BINDIR)/Release | ||
48 | - | ||
49 | -OBJDBG = $(OBJDIR)/Debug | ||
50 | -OBJRLS = $(OBJDIR)/Release | ||
51 | -OBJEXT = o | ||
52 | - | ||
53 | -#---[ Tools ]------------------------------------------------------------------ | ||
54 | - | ||
55 | -MKDIR=@MKDIR_P@ | ||
56 | -CC=@CC@ | ||
57 | -CXX=@CXX@ | ||
58 | -LD=@CC@ | ||
59 | -MSGCAT=@MSGCAT@ | ||
60 | -XGETTEXT=@XGETTEXT@ | ||
61 | -LN_S=@LN_S@ | ||
62 | - | ||
63 | -INSTALL=@INSTALL@ | ||
64 | -INSTALL_PROGRAM=@INSTALL_PROGRAM@ | ||
65 | -INSTALL_DATA=@INSTALL_DATA@ | ||
66 | - | ||
67 | -#---[ Rules ]------------------------------------------------------------------ | ||
68 | -VERSION=@PACKAGE_VERSION@ | ||
69 | -DLL_FLAGS=@DLL_FLAGS@ | ||
70 | -SYSDLL_FLAGS=@SYSDLL_FLAGS@ | ||
71 | -DLL_CFLAGS=@DLL_CFLAGS@ | ||
72 | -DEBUG_CFLAGS=-DDEBUG=1 -g -Wall | ||
73 | -LIB3270_MODE ?= Default | ||
74 | -DLL_NAME ?= @DLLDIR@/@DLLPREFIX@$(MODULE_NAME)@DLLEXT@ | ||
75 | -PLUGIN_NAME ?= plugins/$(MODULE_NAME)@DLLEXT@ | ||
76 | - | ||
77 | -PW3270_CFLAGS=@PW3270_CFLAGS@ | ||
78 | -LIB3270_CFLAGS=@LIB3270_CFLAGS@ | ||
79 | - | ||
80 | -ifeq ($(LIB3270_MODE),Debug) | ||
81 | - PW3270_LIBS=-L../../../.bin/Debug@DLLDIR@ -l$(PACKAGE_TARNAME) | ||
82 | - LIB3270_LIBS=-L../../../.bin/Debug@DLLDIR@ -l3270 | ||
83 | -endif | ||
84 | - | ||
85 | -ifeq ($(LIB3270_MODE),Release) | ||
86 | - BINRLS=../../../.bin/Release | ||
87 | - PW3270_LIBS=-L$(BINRLS)@DLLDIR@ -l$(PACKAGE_TARNAME) | ||
88 | - LIB3270_LIBS=-L$(BINRLS)@DLLDIR@ -l3270 | ||
89 | -endif | ||
90 | - | ||
91 | -#ifeq ($(LIB3270_MODE),Default) | ||
92 | -# LIB3270_LIBS ?= `pkg-config --libs lib3270` | ||
93 | -# LIB3270_CFLAGS ?= `pkg-config --cflags lib3270` | ||
94 | -# PW3270_LIBS ?= `pkg-config --libs pw3270 lib3270` | ||
95 | -# PW3270_CFLAGS ?= `pkg-config --cflags pw3270 lib3270` | ||
96 | -#endif | ||
97 | - | ||
98 | -GTK_CFLAGS ?= @GTK_CFLAGS@ @GTKMAC_CFLAGS@ | ||
99 | -GTK_LIBS ?= @GTK_LIBS@ @GTKMAC_LIBS@ | ||
100 | - | ||
101 | -$(OBJDBG)/%.o: %.c $(DEPENDS) | ||
102 | - @echo " CC `basename $@`" | ||
103 | - @$(MKDIR) `dirname $@` | ||
104 | - @$(CC) $(DLL_CFLAGS) $(CFLAGS) $(DEBUG_CFLAGS) $(PW3270_CFLAGS) $(LIB3270_CFLAGS) $(GTK_CFLAGS) -o $@ -c $< | ||
105 | - | ||
106 | -$(OBJDBG)/%.o: %.cc $(DEPENDS) | ||
107 | - @echo " CC `basename $@`" | ||
108 | - @$(MKDIR) `dirname $@` | ||
109 | - @$(CXX) $(DLL_CFLAGS) $(CFLAGS) $(DEBUG_CFLAGS) $(PW3270_CFLAGS) $(LIB3270_CFLAGS) $(GTK_CFLAGS) -o $@ -c $< | ||
110 | - | ||
111 | -$(OBJRLS)/%.o: %.c $(DEPENDS) | ||
112 | - @echo " CC `basename $@`" | ||
113 | - @$(MKDIR) `dirname $@` | ||
114 | - @$(CC) $(DLL_CFLAGS) $(CFLAGS) $(PW3270_CFLAGS) $(LIB3270_CFLAGS) $(GTK_CFLAGS) -o $@ -c $< | ||
115 | - | ||
116 | -$(OBJRLS)/%.o: %.cc $(DEPENDS) | ||
117 | - @echo " CC `basename $@`" | ||
118 | - @$(MKDIR) `dirname $@` | ||
119 | - @$(CXX) $(DLL_CFLAGS) $(CFLAGS) $(PW3270_CFLAGS) $(LIB3270_CFLAGS) $(GTK_CFLAGS) -o $@ -c $< | ||
120 | - | ||
121 | -#---[ Targets ]---------------------------------------------------------------- | ||
122 | - | ||
123 | -all: $(BINRLS)/$(PLUGIN_NAME) | ||
124 | - | ||
125 | -Release: $(BINRLS)/$(PLUGIN_NAME) | ||
126 | - | ||
127 | -Debug: $(BINDBG)/$(PLUGIN_NAME) | ||
128 | - | ||
129 | -$(BINDBG)$(DLL_NAME): $(BINDBG)$(DLL_NAME).$(VERSION) | ||
130 | - @rm -f $@ | ||
131 | - @rm -f $(BINRLS)@DLLDIR@/@DLLPREFIX@$(MODULE_NAME)@DLLEXT@ | ||
132 | - @cd $(BINDBG)@DLLDIR@ && $(LN_S) @DLLPREFIX@$(MODULE_NAME)@DLLEXT@.$(VERSION) @DLLPREFIX@$(MODULE_NAME)@DLLEXT@ | ||
133 | - | ||
134 | -$(BINRLS)$(DLL_NAME): $(BINRLS)$(DLL_NAME).$(VERSION) | ||
135 | - @rm -f $@ | ||
136 | - @rm -f $(BINRLS)@DLLDIR@/@DLLPREFIX@$(MODULE_NAME)@DLLEXT@ | ||
137 | - @cd $(BINRLS)@DLLDIR@ && $(LN_S) @DLLPREFIX@$(MODULE_NAME)@DLLEXT@.$(VERSION) @DLLPREFIX@$(MODULE_NAME)@DLLEXT@ | ||
138 | - | ||
139 | -clean: | ||
140 | - @rm -fr $(OBJDIR) | ||
141 | - @rm -fr $(BINDIR) | ||
142 | - @rm -f testprogram@EXEEXT@ | ||
143 | - |
src/include/pw3270cpp.h
@@ -1,308 +0,0 @@ | @@ -1,308 +0,0 @@ | ||
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., 51 Franklin | ||
19 | - * St, Fifth Floor, Boston, MA 02110-1301 USA | ||
20 | - * | ||
21 | - * Este programa está nomeado como class.h e possui - linhas de código. | ||
22 | - * | ||
23 | - * Contatos: | ||
24 | - * | ||
25 | - * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | ||
26 | - * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) | ||
27 | - * | ||
28 | - */ | ||
29 | - | ||
30 | -#ifndef PW3270_CLASS_H_INCLUDED | ||
31 | - | ||
32 | - #define PW3270_CLASS_H_INCLUDED 1 | ||
33 | - | ||
34 | - #ifdef _WIN32 | ||
35 | - #define SYSTEM_CHARSET "CP1252" | ||
36 | - #else | ||
37 | - #define SYSTEM_CHARSET "UTF-8" | ||
38 | - #endif // _WIN32 | ||
39 | - | ||
40 | - #include <exception> | ||
41 | - #include <errno.h> | ||
42 | - #include <lib3270.h> | ||
43 | - #include <lib3270/popup.h> | ||
44 | - #include <lib3270/filetransfer.h> | ||
45 | - #include <lib3270/toggle.h> | ||
46 | - | ||
47 | - #ifdef HAVE_ICONV | ||
48 | - #include <iconv.h> | ||
49 | - #endif // HAVE_ICONV | ||
50 | - | ||
51 | - #include <string> | ||
52 | - #include <stdarg.h> | ||
53 | - #include <lib3270.h> | ||
54 | - #include <errno.h> | ||
55 | - | ||
56 | - #ifdef DEBUG | ||
57 | - #include <stdio.h> | ||
58 | - #define trace( fmt, ... ) fprintf(stderr, "%s(%d) " fmt "\n", __FILE__, __LINE__, __VA_ARGS__ ); fflush(stderr); | ||
59 | - #else | ||
60 | - #define trace(x, ...) // __VA_ARGS__ | ||
61 | - #endif | ||
62 | - | ||
63 | - #ifndef ETIMEDOUT | ||
64 | - #define ETIMEDOUT 1238 | ||
65 | - #endif // !ETIMEDOUT | ||
66 | - | ||
67 | -/** | ||
68 | - * @brief Obtém nome de variável como string. | ||
69 | - * | ||
70 | - */ | ||
71 | - #define STRINGIZE(x) #x | ||
72 | - | ||
73 | -/** | ||
74 | - * @brief Converte valor passado ao gcc via linha de comando em string. | ||
75 | - * | ||
76 | - * Macro usada para converter valores passados ao gcc via definições de | ||
77 | - * linha de comando em uma string. Geralmente usado para converter os | ||
78 | - * nomes de diretórios ajustados pelo ./configure. | ||
79 | - * | ||
80 | - * <http://stackoverflow.com/questions/2410976/how-to-define-a-string-in-gcc-command-line> | ||
81 | - */ | ||
82 | - #define STRINGIZE_VALUE_OF(x) STRINGIZE(x) | ||
83 | - | ||
84 | - #define PW3270_NAMESPACE h3270 | ||
85 | - | ||
86 | - namespace PW3270_NAMESPACE | ||
87 | - { | ||
88 | - using namespace std; | ||
89 | - | ||
90 | - class exception : public std::exception | ||
91 | - { | ||
92 | - public: | ||
93 | - exception(int syserror = errno); | ||
94 | - exception(const char *fmt, ...); | ||
95 | - | ||
96 | -#ifdef _WIN32 | ||
97 | - exception(DWORD error, const char *fmt, ...); | ||
98 | -#else | ||
99 | - exception(int error, const char *fmt, ...); | ||
100 | -#endif // _WIN32 | ||
101 | - | ||
102 | - virtual const char * what() const throw(); | ||
103 | - | ||
104 | - private: | ||
105 | - char msg[4096]; | ||
106 | - | ||
107 | - }; | ||
108 | - | ||
109 | - class module | ||
110 | - { | ||
111 | - private: | ||
112 | -#ifdef _WIN32 | ||
113 | - HMODULE hModule; | ||
114 | - int get_datadir(LPSTR datadir); | ||
115 | -#else | ||
116 | - void * hModule; | ||
117 | - | ||
118 | -#endif // _WIN32 | ||
119 | - | ||
120 | - public: | ||
121 | - module(const char *name, const char *version = NULL); | ||
122 | - ~module(); | ||
123 | - | ||
124 | - void * get_symbol(const char *name); | ||
125 | - | ||
126 | - }; | ||
127 | - | ||
128 | - class session | ||
129 | - { | ||
130 | - public: | ||
131 | - | ||
132 | - virtual ~session(); | ||
133 | - | ||
134 | - // Internal methods, used to init/deinit control tables. | ||
135 | - static void init(); | ||
136 | - static void deinit(); | ||
137 | - | ||
138 | - // Factory methods and settings | ||
139 | - static session * start(const char *name = 0); | ||
140 | - static session * create(const char *name = 0); | ||
141 | - static session * create_local(H3270 *hSession); | ||
142 | - static session * create_local(); | ||
143 | - | ||
144 | - static session * get_default(void); | ||
145 | - static bool has_default(void); | ||
146 | - static void set_plugin(session * (*factory)(const char *name)); | ||
147 | - | ||
148 | - virtual string get_session_name(void) const; | ||
149 | - virtual int close(void); | ||
150 | - | ||
151 | - virtual void set_timeout(time_t timeout); | ||
152 | - virtual void set_autoclose(time_t timeout); | ||
153 | - | ||
154 | - // Log management | ||
155 | - void log(const char *fmt, ...); | ||
156 | - void logva(const char *fmt, va_list args); | ||
157 | - | ||
158 | - // Information | ||
159 | - virtual const string get_version(void); | ||
160 | - virtual const string get_revision(void); | ||
161 | - | ||
162 | - virtual bool is_connected(void) = 0; | ||
163 | - virtual bool is_ready(void) = 0; | ||
164 | - | ||
165 | - virtual LIB3270_CSTATE get_cstate(void) = 0; | ||
166 | - virtual LIB3270_MESSAGE get_program_message(void) = 0; | ||
167 | - virtual LIB3270_SSL_STATE get_secure(void) = 0; | ||
168 | - | ||
169 | - virtual int get_width(void) = 0; | ||
170 | - virtual int get_height(void) = 0; | ||
171 | - virtual int get_length(void) = 0; | ||
172 | - | ||
173 | - // Misc | ||
174 | - virtual void set_unlock_delay(unsigned short ms) = 0; | ||
175 | - | ||
176 | - // charset | ||
177 | -#ifdef _WIN32 | ||
178 | - void set_display_charset(const char *remote = 0, const char *local = "CP1252"); | ||
179 | - static string win32_strerror(int e); | ||
180 | -#else | ||
181 | - void set_display_charset(const char *remote = 0, const char *local = "UTF-8"); | ||
182 | -#endif // _WIN32 | ||
183 | - | ||
184 | - virtual int set_host_charset(const char *charset) = 0; | ||
185 | - virtual string get_host_charset(void) = 0; | ||
186 | - virtual string get_display_charset(void); | ||
187 | - | ||
188 | - // Connection & Network | ||
189 | - virtual int connect() = 0; | ||
190 | - virtual int connect(const char *url, time_t wait = 0); | ||
191 | - int set_host(const char *host); | ||
192 | - virtual int set_url(const char *uri) = 0; | ||
193 | - virtual string get_url() = 0; | ||
194 | - | ||
195 | - virtual int disconnect(void) = 0; | ||
196 | - virtual int wait_for_ready(int seconds) = 0; | ||
197 | - virtual int wait(int seconds) = 0; | ||
198 | - virtual int iterate(bool wait = true) = 0; | ||
199 | - | ||
200 | - // Ascii<->EBCDIC translation | ||
201 | - virtual const char * asc2ebc(unsigned char *str, int sz = -1) = 0; | ||
202 | - virtual const char * ebc2asc(unsigned char *str, int sz = -1) = 0; | ||
203 | - string asc2ebc(string &str); | ||
204 | - string ebc2asc(string &str); | ||
205 | - | ||
206 | - // Get/Set/Text with charset translation | ||
207 | - string get_string(int baddr = 0, size_t len = -1, bool lf = false); | ||
208 | - string get_string_at(int row, int col, size_t sz, bool lf = false); | ||
209 | - int set_string_at(int row, int col, const char *str); | ||
210 | - int cmp_string_at(int row, int col, const char *text, bool lf = false); | ||
211 | - int wait_for_string_at(int row, int col, const char *key, int timeout); | ||
212 | - int input_string(const char *str); | ||
213 | - string get_contents(bool lf = true); | ||
214 | - size_t find_string(const char *str, bool lf = false); | ||
215 | - | ||
216 | - inline operator string() { | ||
217 | - return get_string(); | ||
218 | - } | ||
219 | - | ||
220 | - // Cursor management | ||
221 | - virtual int set_cursor_position(int row, int col) = 0; | ||
222 | - virtual int set_cursor_addr(int addr) = 0; | ||
223 | - virtual int get_cursor_addr(void) = 0; | ||
224 | - | ||
225 | - // Toggle management | ||
226 | - virtual int set_toggle(LIB3270_TOGGLE ix, bool value) = 0; | ||
227 | - | ||
228 | - // Keyboard actions | ||
229 | - virtual int enter(void) = 0; | ||
230 | - virtual int pfkey(int key) = 0; | ||
231 | - virtual int pakey(int key) = 0; | ||
232 | - | ||
233 | - // Actions | ||
234 | - virtual int quit(void) = 0; | ||
235 | - virtual int action(const char *name) = 0; | ||
236 | - | ||
237 | - int erase(int mode); | ||
238 | - | ||
239 | - virtual int erase(void) = 0; | ||
240 | - virtual int erase_eof(void) = 0; | ||
241 | - virtual int erase_eol(void) = 0; | ||
242 | - virtual int erase_input(void) = 0; | ||
243 | - | ||
244 | - virtual int print(void) = 0; | ||
245 | - | ||
246 | - // Field management | ||
247 | - virtual int get_field_start(int baddr = -1) = 0; | ||
248 | - virtual int get_field_len(int baddr = -1) = 0; | ||
249 | - virtual int get_next_unprotected(int baddr = -1) = 0; | ||
250 | - | ||
251 | - virtual int get_is_protected(int baddr = -1) = 0; | ||
252 | - virtual int get_is_protected_at(int row, int col) = 0; | ||
253 | - | ||
254 | - // Clipboard management | ||
255 | - virtual int set_copy(const char *text); | ||
256 | - virtual string get_copy(void); | ||
257 | - | ||
258 | - virtual string get_clipboard(void); | ||
259 | - virtual int set_clipboard(const char *text); | ||
260 | - | ||
261 | - // Dialogs | ||
262 | - virtual int popup_dialog(LIB3270_NOTIFY id , const char *title, const char *message, const char *fmt, ...); | ||
263 | - virtual string file_chooser_dialog(int action, const char *title, const char *extension, const char *filename); | ||
264 | - | ||
265 | - // File transfer | ||
266 | - virtual int file_transfer(LIB3270_FT_OPTION options, const char *local, const char *remote, int lrecl = 0, int blksize = 0, int primspace = 0, int secspace = 0, int dft = 4096); | ||
267 | - | ||
268 | - // Charset translation | ||
269 | - const char * get_encoding(void); | ||
270 | - | ||
271 | - string get_3270_text(const char *str); | ||
272 | - string get_local_text(const char *str); | ||
273 | - | ||
274 | - protected: | ||
275 | - session(); | ||
276 | - | ||
277 | - // Get/Set/Test without charset translation | ||
278 | - virtual string get_text(int baddr = 0, size_t len = 1, bool lf = false) = 0; | ||
279 | - virtual string get_text_at(int row, int col, size_t sz, bool lf = false) = 0; | ||
280 | - virtual int set_text_at(int row, int col, const char *str) = 0; | ||
281 | - virtual int cmp_text_at(int row, int col, const char *text, bool lf = false) = 0; | ||
282 | - virtual int emulate_input(const char *str) = 0; | ||
283 | - virtual int wait_for_text_at(int row, int col, const char *key, int timeout); | ||
284 | - | ||
285 | - private: | ||
286 | - | ||
287 | - session * prev; | ||
288 | - session * next; | ||
289 | - | ||
290 | - static session * first; | ||
291 | - static session * last; | ||
292 | - | ||
293 | - static session * (*factory)(const char *name); | ||
294 | - | ||
295 | - static session * create_remote(const char *name); | ||
296 | - | ||
297 | -#ifdef HAVE_ICONV | ||
298 | - iconv_t conv2Local; | ||
299 | - iconv_t conv2Host; | ||
300 | -#endif | ||
301 | - | ||
302 | - }; | ||
303 | - | ||
304 | - | ||
305 | - } | ||
306 | - | ||
307 | - | ||
308 | -#endif // PW3270_CLASS_H_INCLUDED |
src/include/rules.mak.in
@@ -1,103 +0,0 @@ | @@ -1,103 +0,0 @@ | ||
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 | -# licinio@bb.com.br (Licínio Luis Branco) | ||
26 | -# kraucer@bb.com.br (Kraucer Fernandes Mazuco) | ||
27 | -# macmiranda@bb.com.br (Marco Aurélio Caldas Miranda) | ||
28 | -# | ||
29 | - | ||
30 | -#---[ Configuration values ]--------------------------------------------------- | ||
31 | - | ||
32 | -PACKAGE_NAME=@PACKAGE_NAME@ | ||
33 | -PACKAGE_VERSION=@PACKAGE_VERSION@ | ||
34 | -PACKAGE_TARNAME=@PACKAGE_TARNAME@ | ||
35 | -EXEEXT=@EXEEXT@ | ||
36 | - | ||
37 | -LIB3270_CFLAGS ?= @LIB3270_CFLAGS@ | ||
38 | -LIB3270_LIBS ?= `pkg-config --libs lib3270` | ||
39 | -DLL_FLAGS=@DLL_FLAGS@ | ||
40 | - | ||
41 | -DEBUG_CFLAGS=-DDEBUG=1 -g -Wall | ||
42 | -DEPENDS ?= *.h ../include/*.h ../include/lib3270/*.h | ||
43 | - | ||
44 | -#---[ Tools ]------------------------------------------------------------------ | ||
45 | - | ||
46 | -MKDIR=@MKDIR_P@ | ||
47 | -CC=@CC@ | ||
48 | -LD=@CC@ | ||
49 | -MSGCAT=@MSGCAT@ | ||
50 | -XGETTEXT=@XGETTEXT@ | ||
51 | - | ||
52 | -#---[ ]------------------------------------------------------------------ | ||
53 | - | ||
54 | -OBJEXT=.o | ||
55 | - | ||
56 | -#---[ Paths ]------------------------------------------------------------------ | ||
57 | - | ||
58 | -ROOTDIR ?= . | ||
59 | -OBJDIR ?= $(ROOTDIR)/.obj | ||
60 | -BINDIR ?= $(ROOTDIR)/.bin | ||
61 | -TMPDIR ?= $(ROOTDIR)/.tmp | ||
62 | - | ||
63 | -BINDBG ?= $(BINDIR)/Debug | ||
64 | -BINRLS ?= $(BINDIR)/Release | ||
65 | -LIBDBG ?= $(BINDBG)@DLLDIR@ | ||
66 | - | ||
67 | -OBJDBG = $(OBJDIR)/Debug | ||
68 | -OBJRLS = $(OBJDIR)/Release | ||
69 | -LIBRLS ?= $(BINRLS)@DLLDIR@ | ||
70 | - | ||
71 | -#---[ Rules ]------------------------------------------------------------------ | ||
72 | - | ||
73 | -$(OBJDBG)/%.o: %.c $(DEPENDS) | ||
74 | - @echo " CC `basename $@`" | ||
75 | - @$(MKDIR) `dirname $@` | ||
76 | - @$(CC) $(DEBUG_CFLAGS) $(CFLAGS) $(LIB3270_CFLAGS) -o $@ -c $< | ||
77 | - | ||
78 | -$(OBJRLS)/%.o: %.c $(DEPENDS) | ||
79 | - @echo " CC `basename $@`" | ||
80 | - @$(MKDIR) `dirname $@` | ||
81 | - @$(CC) $(CFLAGS) $(LIB3270_CFLAGS) -o $@ -c $< | ||
82 | - | ||
83 | -$(TMPDIR)/pot/%.pot: %.c | ||
84 | - @echo " TEXT `basename $@`" | ||
85 | - @$(MKDIR) `dirname $@` | ||
86 | - @$(XGETTEXT) --default-domain=$(PACKAGE_NAME) --language=C \ | ||
87 | - --keyword=_ --keyword=N_ --keyword=MSG_:2 --output=$@ $< | ||
88 | - @touch $@ | ||
89 | - | ||
90 | -$(TMPDIR)/pot/%.pot: %.rc | ||
91 | - @touch $@ | ||
92 | - | ||
93 | -#---[ Targets ]---------------------------------------------------------------- | ||
94 | - | ||
95 | -clean-common: | ||
96 | - @rm -fr $(OBJDIR) | ||
97 | - @rm -fr $(BINDIR) | ||
98 | - @rm -fr $(TMPDIR) | ||
99 | - @rm -f *.log | ||
100 | - | ||
101 | - | ||
102 | - | ||
103 | - |