~ubuntu-branches/ubuntu/wily/edbrowse/wily

« back to all changes in this revision

Viewing changes to makefile

  • Committer: Bazaar Package Importer
  • Author(s): Kapil Hari Paranjape
  • Date: 2007-12-05 10:39:04 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20071205103904-zr3kzzu0ym6stg16
Tags: 3.3.1-1
* New upstream version (3.3.1).
  - Messages have been internationalised.
  - Supports LANG environment variable.
  - Includes man page.
* Incorporate upstream man page:
  - debian/rules: Add rule to install upstream man page.
  - debian/edbrowse.1: Not required. Removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
#  The -I flags assume smjs is installed in /usr/local
9
9
#  You may also need -I/usr/include/pcre or -I/usr/local/include/pcre
10
10
 
11
 
CFLAGS = -I/usr/local/js/src -I/usr/local/js/src/Linux_All_DBG.OBJ -DXP_UNIX -DX86_LINUX
12
 
ESQLDFLAGS = -s -Xlinker -rpath -Xlinker $(INFORMIXDIR)/lib:$(INFORMIXDIR)/lib/esql
 
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)
13
20
 
14
21
#  If the smjs library is already installed by your linux distribution,
15
22
#  e.g. Debian, use the following flags.
16
 
#CFLAGS = -I/usr/include/smjs -DXP_UNIX -DX86_LINUX
 
23
#
 
24
#CFLAGS = -I/usr/include/smjs -DXP_UNIX -DX86_LINUX $(DEBUGFLAGS)
17
25
 
18
26
#  Normal load flags
19
 
LFLAGS = -s
 
27
LFLAGS = $(STRIP)
 
28
 
 
29
#  ESQL C load flags
 
30
ESQLDFLAGS = $(STRIP) -Xlinker -rpath -Xlinker $(INFORMIXDIR)/lib:$(INFORMIXDIR)/lib/esql
20
31
 
21
32
#  Libraries for edbrowse.
22
33
#  I assume you have linked libjs.so into /usr/lib/libsmjs.so
32
43
 
33
44
#  edbrowse objects
34
45
EBOBJS = main.o buffers.o url.o auth.o http.o sendmail.o fetchmail.o \
35
 
        html.o format.o cookies.o stringfile.o jsdom.o jsloc.o
 
46
        html.o format.o cookies.o stringfile.o jsdom.o jsloc.o messages.o
36
47
 
37
48
#  Header file dependencies.
38
 
$(EBOBJS) : eb.h eb.p tcp.h
 
49
$(EBOBJS) : eb.h eb.p messages.h tcp.h
39
50
 
40
51
edbrowse: $(EBOBJS) tcp.o dbstubs.o
41
52
        cc $(LFLAGS) -o edbrowse $(EBOBJS) tcp.o dbstubs.o $(LIBS)
42
53
 
 
54
#  You probably need to be root to do this.
 
55
install:
 
56
        install edbrowse /usr/local/bin
 
57
 
43
58
dbinfx.o : dbinfx.ec
44
59
        esql -c dbinfx.ec
45
60
 
52
67
        cc $(LFLAGS) -o edbrowseodbc $(EBOBJS) tcp.o dbops.o dbodbc.o $(LIBS)
53
68
 
54
69
#  Build function prototypes.
 
70
#  mkproto is my program, not a general unix utility.
55
71
proto:
56
 
        mkproto -g main.c buffers.c url.c auth.c http.c sendmail.c fetchmail.c \
57
 
        html.c format.c cookies.c stringfile.c jsdom.c jsloc.c dbstubs.c >eb.p
 
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
58
75
 
59
76
#  I've had no luck getting this to work - can you help?
60
77
edbrowse.static: $(EBOBJS) tcp.o
61
78
        cc --static $(LFLAGS) -o edbrowse.static tcp.o $(EBOBJS) $(LIBS)
62
79
 
 
80
clean:
 
81
        rm -f *.o edbrowse edbrowseinf edbrowseodbc
 
82