Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 350183 | Differences between
and this patch

Collapse All | Expand All

(-)edbrowse-3.4.6/src/makefile (-5 / +8 lines)
Lines 23-34 Link Here
23
STRIP=-s
23
STRIP=-s
24
endif
24
endif
25
25
26
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 $@ $<
27
30
28
#  If the smjs library is already installed by your linux distribution,
31
#  If the smjs library is already installed by your linux distribution,
29
#  e.g. Debian, use the following flags.
32
#  e.g. Debian, use the following flags.
30
#
33
#
31
#CFLAGS = -I/usr/include/js -DXP_UNIX -DX86_LINUX $(DEBUGFLAGS)
34
#CFLAGS = -I/usr/include/smjs -DXP_UNIX -DX86_LINUX $(DEBUGFLAGS)
32
35
33
#  Normal load flags
36
#  Normal load flags
34
LFLAGS = $(STRIP)
37
LFLAGS = $(STRIP)
Lines 59-69 Link Here
59
$(EBOBJS) : eb.h eb.p messages.h tcp.h
62
$(EBOBJS) : eb.h eb.p messages.h tcp.h
60
63
61
edbrowse: $(EBOBJS) tcp.o dbstubs.o
64
edbrowse: $(EBOBJS) tcp.o dbstubs.o
62
	cc $(LFLAGS) -o edbrowse $(EBOBJS) tcp.o dbstubs.o $(LIBS)
65
	$(CC) $(LDFLAGS) -o edbrowse $(EBOBJS) tcp.o dbstubs.o $(LIBS)
63
66
64
#  You probably need to be root to do this.
67
#  You probably need to be root to do this.
65
install:
68
install:
66
	install -Dm755 edbrowse $(bindir)/edbrowse
69
	install -Dm755 edbrowse $(DESTDIR)$(bindir)/edbrowse
67
70
68
#  If you had to build the javascript library yourself,
71
#  If you had to build the javascript library yourself,
69
#  link it into /usr/lib.
72
#  link it into /usr/lib.
Lines 87-93 Link Here
87
90
88
#  odbc access
91
#  odbc access
89
edbrowseodbc: $(EBOBJS) tcp.o dbops.o dbodbc.o
92
edbrowseodbc: $(EBOBJS) tcp.o dbops.o dbodbc.o
90
	cc $(LFLAGS) -o edbrowseodbc $(EBOBJS) tcp.o dbops.o dbodbc.o $(LIBS) -lodbc
93
	$(CC) $(LDFLAGS) -o edbrowseodbc $(EBOBJS) tcp.o dbops.o dbodbc.o $(LIBS) -lodbc
91
94
92
#  Build function prototypes.
95
#  Build function prototypes.
93
#  mkproto is my program, not a general unix utility.
96
#  mkproto is my program, not a general unix utility.

Return to bug 350183