~ubuntu-branches/ubuntu/karmic/edbrowse/karmic-security

« back to all changes in this revision

Viewing changes to makefile

  • Committer: Bazaar Package Importer
  • Author(s): Kapil Hari Paranjape
  • Date: 2008-04-09 18:55:23 UTC
  • mfrom: (1.1.4 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080409185523-dqokcloumyn1ibn4
Tags: 3.3.4-1
* New upstream version (3.3.4).
 - Convert between iso8859-1 and utf-8 on the fly.
 - Support reading of pdf using pdftohtml.
 - French translation of html documentation.
 - Old html documentation renamed to usersguide.
 - Additional documentation on philosophy.
* debian/control:
 - Changed homepage to sourcefource site.
 - Moved homepage from description to its own field.
 - Added "poppler-utils | xpdf-utils" to Recommends.
 - Added "www-browser", "mail-reader" and "editor" to Provides. 
 - Removed "XS-" from Vcs-Svn tag.
 - Standards-Version: 3.7.3
* debian/docs: Added new documentation files
  from "doc/" subdirectory.
* debian/watch: Updated to use sourceforge site.
* debian/edbrowse.doc-base:
  - Changed name of upstream provided html documentation from
    "ebdoc.html" to "usersguide.html".
  - Changed section from "net" to "Network/Web Browsing".
* debian/install: Compiled binary is now in "src/".

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#  This is the makefile for edbrowse.
2
 
 
3
 
#  Flags for gcc compilation.
4
 
#  Note, some have reported seg-faults with this program when -O is used.
5
 
#  This is a problem with gcc version 2.95 or less.
6
 
#  Since performance is not critical here, better leave it out.
7
 
#
8
 
#  The -I flags assume smjs is installed in /usr/local
9
 
#  You may also need -I/usr/include/pcre or -I/usr/local/include/pcre
10
 
 
11
 
#  Allow for symbolic debugging.
12
 
DEBUGFLAGS=-g -ggdb
13
 
STRIP=
14
 
ifeq ($(EBDEBUG),) # debugging turned off
15
 
DEBUGFLAGS=
16
 
STRIP=-s
17
 
endif
18
 
 
19
 
CFLAGS = -I/usr/local/js/src -I/usr/local/js/src/Linux_All_DBG.OBJ -DXP_UNIX -DX86_LINUX $(DEBUGFLAGS)
20
 
 
21
 
#  If the smjs library is already installed by your linux distribution,
22
 
#  e.g. Debian, use the following flags.
23
 
#
24
 
#CFLAGS = -I/usr/include/smjs -DXP_UNIX -DX86_LINUX $(DEBUGFLAGS)
25
 
 
26
 
#  Normal load flags
27
 
LFLAGS = $(STRIP)
28
 
 
29
 
#  ESQL C load flags
30
 
ESQLDFLAGS = $(STRIP) -Xlinker -rpath -Xlinker $(INFORMIXDIR)/lib:$(INFORMIXDIR)/lib/esql
31
 
 
32
 
#  Libraries for edbrowse.
33
 
#  I assume you have linked libjs.so into /usr/lib/libsmjs.so
34
 
#  so that -lsmjs will suffice.
35
 
#  Some distros, e.g. Debian, already do this for you.
36
 
#  Some folks need to add -lcrypto to this list.
37
 
 
38
 
LIBS = -lpcre -lm -lssl -lsmjs
39
 
 
40
 
#  Make the dynamically linked executable program by default.
41
 
#  Edbrowse executable.
42
 
all: edbrowse
43
 
 
44
 
#  edbrowse objects
45
 
EBOBJS = main.o buffers.o url.o auth.o http.o sendmail.o fetchmail.o \
46
 
        html.o format.o cookies.o stringfile.o jsdom.o jsloc.o messages.o
47
 
 
48
 
#  Header file dependencies.
49
 
$(EBOBJS) : eb.h eb.p messages.h tcp.h
50
 
 
51
 
edbrowse: $(EBOBJS) tcp.o dbstubs.o
52
 
        cc $(LFLAGS) -o edbrowse $(EBOBJS) tcp.o dbstubs.o $(LIBS)
53
 
 
54
 
#  You probably need to be root to do this.
55
 
install:
56
 
        install edbrowse /usr/local/bin
57
 
 
58
 
dbinfx.o : dbinfx.ec
59
 
        esql -c dbinfx.ec
60
 
 
61
 
dbinfx.o dbops.o : dbapi.h eb.h
62
 
 
63
 
edbrowseinf: $(EBOBJS) tcp.o dbops.o dbinfx.o
64
 
        esql $(ESQLDFLAGS) -o edbrowseinf $(EBOBJS) tcp.o dbops.o dbinfx.o $(LIBS)
65
 
 
66
 
edbrowseodbc: $(EBOBJS) tcp.o dbops.o dbodbc.o
67
 
        cc $(LFLAGS) -o edbrowseodbc $(EBOBJS) tcp.o dbops.o dbodbc.o $(LIBS)
68
 
 
69
 
#  Build function prototypes.
70
 
#  mkproto is my program, not a general unix utility.
71
 
proto:
72
 
        mkproto -g main.c buffers.c url.c auth.c http.c messages.c \
73
 
        sendmail.c fetchmail.c html.c \
74
 
        format.c cookies.c stringfile.c jsdom.c jsloc.c dbstubs.c >eb.p
75
 
 
76
 
#  I've had no luck getting this to work - can you help?
77
 
edbrowse.static: $(EBOBJS) tcp.o
78
 
        cc --static $(LFLAGS) -o edbrowse.static tcp.o $(EBOBJS) $(LIBS)
79
 
 
80
 
clean:
81
 
        rm -f *.o edbrowse edbrowseinf edbrowseodbc
 
1
#  Simple makefile to move to the src directory.
 
2
#  This only works if you are making the default target.
 
3
 
 
4
all :
 
5
        cd src ; make
82
6