1
# This is the makefile for edbrowse.
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.
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
11
# Allow for symbolic debugging.
14
ifeq ($(EBDEBUG),) # debugging turned off
19
CFLAGS = -I/usr/local/js/src -I/usr/local/js/src/Linux_All_DBG.OBJ -DXP_UNIX -DX86_LINUX $(DEBUGFLAGS)
21
# If the smjs library is already installed by your linux distribution,
22
# e.g. Debian, use the following flags.
24
#CFLAGS = -I/usr/include/smjs -DXP_UNIX -DX86_LINUX $(DEBUGFLAGS)
30
ESQLDFLAGS = $(STRIP) -Xlinker -rpath -Xlinker $(INFORMIXDIR)/lib:$(INFORMIXDIR)/lib/esql
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.
38
LIBS = -lpcre -lm -lssl -lsmjs
40
# Make the dynamically linked executable program by default.
41
# Edbrowse executable.
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
48
# Header file dependencies.
49
$(EBOBJS) : eb.h eb.p messages.h tcp.h
51
edbrowse: $(EBOBJS) tcp.o dbstubs.o
52
cc $(LFLAGS) -o edbrowse $(EBOBJS) tcp.o dbstubs.o $(LIBS)
54
# You probably need to be root to do this.
56
install edbrowse /usr/local/bin
61
dbinfx.o dbops.o : dbapi.h eb.h
63
edbrowseinf: $(EBOBJS) tcp.o dbops.o dbinfx.o
64
esql $(ESQLDFLAGS) -o edbrowseinf $(EBOBJS) tcp.o dbops.o dbinfx.o $(LIBS)
66
edbrowseodbc: $(EBOBJS) tcp.o dbops.o dbodbc.o
67
cc $(LFLAGS) -o edbrowseodbc $(EBOBJS) tcp.o dbops.o dbodbc.o $(LIBS)
69
# Build function prototypes.
70
# mkproto is my program, not a general unix utility.
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
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)
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.