source: murachi/esteidfirefoxplugin/Makefile

Last change on this file was 7d3ae3e, checked in by antonioaraujob <aaraujo@…>, 9 years ago

Agregados archivos fuentes del complemento esteidfirefoxplugin de Estonia para firmar electrónicamente un hash.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1# EstEID Browser Plugin
2CC = gcc
3COMMON_HEADERS = common/esteid_certinfo.h common/pkcs11_errors.h common/esteid_log.h common/esteid_sign.h common/esteid_timer.h common/esteid_time.h common/l10n.h common/labels.h common/esteid_map.h common/esteid_dialog_common.h
4COMMON_SOURCES = common/esteid_certinfo.c common/pkcs11_errors.c common/esteid_log.c common/esteid_sign.c common/esteid_timer.c common/esteid_time.c common/l10n.c common/l10n-linux.c common/esteid_map.c common/esteid_dialog_common.c
5C_FLAGS = -g -O2 -std=gnu99 -Wall $(CPPFLAGS)
6I_FLAGS = -Iinclude -Icommon `pkg-config --cflags gtk+-2.0`
7L_FLAGS = -ldl -lcrypto -lpthread `pkg-config --libs gtk+-2.0`
8D_FLAGS = -DXP_UNIX -DMOZ_X11
9PLUGIN_HEADERS = firefox/plugin.h firefox/plugin-class.h firefox/cert-class.h
10PLUGIN_SOURCES = firefox/plugin.c firefox/plugin-class.c firefox/cert-class.c
11
12clean:
13        rm -f test
14        rm -f npesteid-firefox-plugin.so
15
16plugin: $(COMMON_HEADERS) $(COMMON_SOURCES) $(PLUGIN_HEADERS) $(PLUGIN_SOURCES) firefox/dialogs-gtk.c common/dialogs.h
17        $(CC) $(C_FLAGS) -fPIC -shared -o npesteid-firefox-plugin.so $(PLUGIN_SOURCES) firefox/dialogs-gtk.c $(COMMON_SOURCES) $(I_FLAGS) $(L_FLAGS) $(D_FLAGS) $(MODE_FLAG)
18
19plugin-development:
20        MODE_FLAG=-DDEVELOPMENT_MODE make plugin
21
22install: plugin
23#       install -d $(HOME)/.mozilla/plugins
24#       install firefox-plugin.so $(HOME)/.mozilla/plugins
25
26maptest: plugin common/esteid_map_test.c
27        $(CC) $(CPPFLAGS) $(CFLAGS) $(C_FLAGS) common/esteid_map.c common/esteid_map_test.c -o maptest
28        ./maptest
29        rm maptest
Note: See TracBrowser for help on using the repository browser.