Lines 1-5
Link Here
|
1 |
# This is the makefile for edbrowse. |
1 |
# This is the makefile for edbrowse. |
2 |
|
2 |
|
|
|
3 |
prefix = /usr/local |
4 |
bindir = $(prefix)/bin |
5 |
|
3 |
# Flags for gcc compilation. |
6 |
# Flags for gcc compilation. |
4 |
# Note, some have reported seg-faults with this program when -O is used. |
7 |
# 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. |
8 |
# This is a problem with gcc version 2.95 or less. |
Lines 20-26
Link Here
|
20 |
STRIP=-s |
23 |
STRIP=-s |
21 |
endif |
24 |
endif |
22 |
|
25 |
|
23 |
CFLAGS = -I/usr/local/js/src -I/usr/local/js/src/Linux_All_DBG.OBJ -DXP_UNIX -DX86_LINUX $(DEBUGFLAGS) |
26 |
JSFLAGS = -I/usr/include/js -DXP_UNIX |
|
|
27 |
|
28 |
%.o: %.c |
29 |
$(CC) $(CFLAGS) $(JSFLAGS) -c -o $@ $< |
24 |
|
30 |
|
25 |
# If the smjs library is already installed by your linux distribution, |
31 |
# If the smjs library is already installed by your linux distribution, |
26 |
# e.g. Debian, use the following flags. |
32 |
# e.g. Debian, use the following flags. |
Lines 42-48
Link Here
|
42 |
# Or you can use the target jslink below. |
48 |
# Or you can use the target jslink below. |
43 |
# Some folks need to add -lcrypto to this list. |
49 |
# Some folks need to add -lcrypto to this list. |
44 |
|
50 |
|
45 |
LIBS = -lpcre -lm -lssl -lsmjs -lcurl -lreadline |
51 |
LIBS = -lpcre -lm -lssl -ljs -lcurl -lreadline |
46 |
|
52 |
|
47 |
# Make the dynamically linked executable program by default. |
53 |
# Make the dynamically linked executable program by default. |
48 |
# Edbrowse executable. |
54 |
# Edbrowse executable. |
Lines 56-74
Link Here
|
56 |
$(EBOBJS) : eb.h eb.p messages.h tcp.h |
62 |
$(EBOBJS) : eb.h eb.p messages.h tcp.h |
57 |
|
63 |
|
58 |
edbrowse: $(EBOBJS) tcp.o dbstubs.o |
64 |
edbrowse: $(EBOBJS) tcp.o dbstubs.o |
59 |
cc $(LFLAGS) -o edbrowse $(EBOBJS) tcp.o dbstubs.o $(LIBS) |
65 |
$(CC) $(LDFLAGS) -o edbrowse $(EBOBJS) tcp.o dbstubs.o $(LIBS) |
60 |
|
66 |
|
61 |
# You probably need to be root to do this. |
67 |
# You probably need to be root to do this. |
62 |
install: |
68 |
install: |
63 |
install edbrowse /usr/local/bin |
69 |
install -Dm755 edbrowse $(DESTDIR)$(bindir)/edbrowse |
64 |
|
70 |
|
65 |
# If you had to build the javascript library yourself, |
71 |
# If you had to build the javascript library yourself, |
66 |
# link it into /usr/lib. |
72 |
# link it into /usr/lib. |
67 |
# If it's already there, do nothing. |
73 |
# If it's already there, do nothing. |
68 |
# This has to be done as root. |
74 |
# This has to be done as root. |
69 |
jslink: |
|
|
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 |
72 |
|
75 |
|
73 |
dbinfx.o : dbinfx.ec |
76 |
dbinfx.o : dbinfx.ec |
74 |
esql -c dbinfx.ec |
77 |
esql -c dbinfx.ec |
Lines 79-85
Link Here
|
79 |
esql $(ESQLDFLAGS) -o edbrowseinf $(EBOBJS) tcp.o dbops.o dbinfx.o $(LIBS) |
82 |
esql $(ESQLDFLAGS) -o edbrowseinf $(EBOBJS) tcp.o dbops.o dbinfx.o $(LIBS) |
80 |
|
83 |
|
81 |
edbrowseodbc: $(EBOBJS) tcp.o dbops.o dbodbc.o |
84 |
edbrowseodbc: $(EBOBJS) tcp.o dbops.o dbodbc.o |
82 |
cc $(LFLAGS) -o edbrowseodbc $(EBOBJS) tcp.o dbops.o dbodbc.o $(LIBS) -lodbc |
85 |
$(CC) $(LDFLAGS) -o edbrowseodbc $(EBOBJS) tcp.o dbops.o dbodbc.o $(LIBS) -lodbc |
83 |
|
86 |
|
84 |
# Build function prototypes. |
87 |
# Build function prototypes. |
85 |
# mkproto is my program, not a general unix utility. |
88 |
# mkproto is my program, not a general unix utility. |