1
# This is the makefile for edbrowse under BSD Unix.
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
7
# Tell the dynamic linker to look in the pkg area.
8
LFLAGS = -s -Wl,--rpath -Wl,/usr/pkg/lib
10
# Libraries for edbrowse.
11
LIBS = -L /usr/pkg/lib -lpcre -lm -lssl -ljs
13
# Make the dynamically linked executable program by default.
14
# Edbrowse executable.
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
21
# Header file dependencies.
23
main.o tcp.o http.o sendmail.o: tcp.h
25
edbrowse: $(EBOBJS) tcp.o
26
cc $(LFLAGS) -o edbrowse tcp.o $(EBOBJS) $(LIBS)
28
# Build function prototypes.
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
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)