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

« back to all changes in this revision

Viewing changes to makefile.bsd

  • Committer: Bazaar Package Importer
  • Author(s): Kapil Hari Paranjape
  • Date: 2006-10-20 10:47:30 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061020104730-o7vxbrypwaz932dt
Tags: 3.1.2-1
* New upstream version (3.1.2). Closes: #306486.
  - programs now written in C
  - support for javascript.
* debian/control:
  - added Kapil Hari Paranjape to Uploaders.
  - Build-depends on "libssl-dev", "libmozjs-dev", "libpcre3-dev".
  - Standards-Version to 3.7.2. No changes required.
* debian/rules:
  - add "noopt" feature.
  - set CFLAGS and LIBS.
  - Put $(MAKE) into the build rules.
* debian/copyright: Edited to add the current copyright which
  is GPL with the exception for linking with OpenSSL.
* debian/docs: added "README".
* debian/examples: added "jsrt".

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#  This is the makefile for edbrowse under BSD Unix.
 
2
 
 
3
#  Flags for compilation.
 
4
#  I know - I set the Linux flag here, but it seems to work.
 
5
CFLAGS = -I/usr/pkg/include -DXP_UNIX -DX86_LINUX
 
6
 
 
7
#  Tell the dynamic linker to look in the pkg area.
 
8
LFLAGS = -s -Wl,--rpath -Wl,/usr/pkg/lib
 
9
 
 
10
#  Libraries for edbrowse.
 
11
LIBS = -L /usr/pkg/lib -lpcre -lm -lssl -ljs
 
12
 
 
13
#  Make the dynamically linked executable program by default.
 
14
#  Edbrowse executable.
 
15
all: edbrowse
 
16
 
 
17
#  edbrowse objects
 
18
EBOBJS = main.o buffers.o url.o auth.o http.o sendmail.o fetchmail.o \
 
19
        html.o format.o cookies.o stringfile.o jsdom.o jsloc.o
 
20
 
 
21
#  Header file dependencies.
 
22
$(EBOBJS) : eb.h eb.p
 
23
main.o tcp.o http.o sendmail.o: tcp.h
 
24
 
 
25
edbrowse: $(EBOBJS) tcp.o
 
26
        cc $(LFLAGS) -o edbrowse tcp.o $(EBOBJS) $(LIBS)
 
27
 
 
28
#  Build function prototypes.
 
29
proto:
 
30
        mkproto -g main.c buffers.c url.c auth.c http.c sendmail.c fetchmail.c \
 
31
        html.c format.c cookies.c stringfile.c jsdom.c jsloc.c >eb.p
 
32
 
 
33
#  I've had no luck getting this to work - can you help?
 
34
edbrowse.static: $(EBOBJS) tcp.o
 
35
        cc --static $(LFLAGS) -o edbrowse.static tcp.o $(EBOBJS) $(LIBS)
 
36