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

« back to all changes in this revision

Viewing changes to src/makefile

  • Committer: Bazaar Package Importer
  • Author(s): Kapil Hari Paranjape
  • Date: 2009-03-01 16:55:12 UTC
  • mfrom: (1.1.5 upstream) (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090301165512-97yhte20cy3c4q2w
Tags: 3.4.1-1
* New upstream version (3.4.1).
* debian/rules:
  - add "touch build-stamp" to build-stamp target.
  - modify clean target to use clean target in src/makefile.
  - remove debian/edbrowse.1 in clean target.
  - added "-lcurl" to linker flags.
* debian/control:
  - added libcurl4-openssl-dev to Build-Depends
  - Standards Version 3.8.0. No changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
LFLAGS = $(STRIP)
32
32
 
33
33
#  ESQL C load flags
34
 
ESQLDFLAGS = $(STRIP) -Xlinker -rpath -Xlinker $(INFORMIXDIR)/lib:$(INFORMIXDIR)/lib/esql
 
34
#ESQLDFLAGS = $(STRIP) -Xlinker -rpath -Xlinker $(INFORMIXDIR)/lib:$(INFORMIXDIR)/lib/esql
 
35
#  but it's better to put those two directories into /etc/ld.so.conf and then run ldconfig
 
36
ESQLDFLAGS = $(STRIP)
35
37
 
36
38
#  Libraries for edbrowse.
37
39
#  I assume you have linked libjs.so into /usr/lib/libsmjs.so
38
40
#  so that -lsmjs will suffice.
39
41
#  Some distros, e.g. Debian, already do this for you.
40
 
#  You can use the target jslink below.
 
42
#  Or you can use the target jslink below.
41
43
#  Some folks need to add -lcrypto to this list.
42
44
 
43
 
LIBS = -lpcre -lm -lssl -lsmjs
 
45
LIBS = -lpcre -lm -lssl -lsmjs -lcurl
44
46
 
45
47
#  Make the dynamically linked executable program by default.
46
48
#  Edbrowse executable.
66
68
#  This has to be done as root.
67
69
jslink:
68
70
        [ -f /usr/lib/libsmjs.so ] || ln -s /usr/local/js/src/Linux_All_DBG.OBJ/libjs.so /usr/lib/libsmjs.so
 
71
        [ -f /usr/lib/libsmjs.a ] || ln -s /usr/local/js/src/Linux_All_DBG.OBJ/libjs.a /usr/lib/libsmjs.a
69
72
 
70
73
dbinfx.o : dbinfx.ec
71
74
        esql -c dbinfx.ec
72
75
 
73
 
dbinfx.o dbops.o : dbapi.h eb.h
 
76
dbinfx.o dbops.o : dbapi.h eb.h eb.p
74
77
 
75
78
edbrowseinf: $(EBOBJS) tcp.o dbops.o dbinfx.o
76
79
        esql $(ESQLDFLAGS) -o edbrowseinf $(EBOBJS) tcp.o dbops.o dbinfx.o $(LIBS)
77
80
 
78
81
edbrowseodbc: $(EBOBJS) tcp.o dbops.o dbodbc.o
79
 
        cc $(LFLAGS) -o edbrowseodbc $(EBOBJS) tcp.o dbops.o dbodbc.o $(LIBS)
 
82
        cc $(LFLAGS) -o edbrowseodbc $(EBOBJS) tcp.o dbops.o dbodbc.o $(LIBS) -lodbc
80
83
 
81
84
#  Build function prototypes.
82
85
#  mkproto is my program, not a general unix utility.
85
88
        sendmail.c fetchmail.c html.c \
86
89
        format.c cookies.c stringfile.c jsdom.c jsloc.c dbstubs.c >eb.p
87
90
 
88
 
#  I've had no luck getting this to work - can you help?
89
 
edbrowse.static: $(EBOBJS) tcp.o
90
 
        cc --static $(LFLAGS) -o edbrowse.static tcp.o $(EBOBJS) $(LIBS)
 
91
#  This doesn't build on my system, because I don't have libcurl.a.
 
92
edbrowse.static: $(EBOBJS) tcp.o dbops.o dbodbc.o
 
93
        cc --static $(LFLAGS) -o edbrowse.static $(EBOBJS) tcp.o dbops.o dbodbc.o $(LIBS) -lodbc
91
94
 
92
95
clean:
93
 
        rm -f *.o edbrowse edbrowseinf edbrowseodbc
 
96
        rm -f *.o edbrowse edbrowseinf edbrowseodbc edbrowse.static
94
97