Skip to content

Commit 01ee6a6

Browse files
author
Harry Bock
committed
Add common/Makefile.in patch.
The vanilla Argus 3.0.2 client distribution does not build shared libraries. This patch builds libargus_client.so using GNU libtool.
1 parent 0c860af commit 01ee6a6

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

common-Makefile.in.patch

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
--- common/Makefile.in 2009-03-02 16:20:03.000000000 -0500
2+
+++ ../../development/argus-periscope/common/Makefile.in 2009-05-29 19:15:39.342323093 -0400
3+
@@ -42,6 +42,8 @@
4+
srcdir = @srcdir@
5+
VPATH = @srcdir@
6+
7+
+COMPATLIB = @COMPATLIB@ @LIB_SASL@ @LIBS@ @V_THREADS@ @V_GEOIPDEP@
8+
+
9+
#
10+
# You shouldn't need to edit anything below.
11+
#
12+
@@ -72,6 +74,11 @@
13+
@rm -f $@
14+
$(CC) $(CFLAGS) -c $(srcdir)/$*.c
15+
16+
+# libtool compilation
17+
+%.lo : %.c
18+
+ @rm -f $@
19+
+ libtool --mode=compile $(CC) $(CFLAGS) -c $(srcdir)/$<
20+
+
21+
# We would like to say "OBJ = $(SRC:.c=.o)" but Ultrix's make cannot
22+
# hack the extra indirection
23+
24+
@@ -87,6 +94,7 @@
25+
TAGFILES = $(SRC) $(HDR) $(TAGHDR)
26+
27+
LIBS = @INSTALL_LIB@/argus_parse.a @INSTALL_LIB@/argus_common.a @INSTALL_LIB@/argus_client.a @INSTALL_LIB@/argus_event.a
28+
+SOLIBS = @INSTALL_LIB@/libargus_client.la
29+
30+
OBJ = $(COMMONOBJ) $(PARSEOBJ) $(CLIENTOBJ) $(EVENTOBJ)
31+
CLEANFILES = $(LIBS) $(OBJ) $(GENSRC) $(GENHDR) $(VSRC) lex.yy.c
32+
@@ -100,6 +108,7 @@
33+
34+
CLIENTSRC = argus_client.c argus_label.c argus_grep.c
35+
CLIENTOBJ = argus_client.o argus_label.o argus_grep.o
36+
+CLIENTSO = $(COMMONOBJ:.o=.lo) $(CLIENTOBJ:.o=.lo)
37+
38+
EVENTSRC = argus_event.c
39+
EVENTOBJ = argus_event.o
40+
@@ -107,7 +116,11 @@
41+
42+
SRC = $(COMMONSRC) $(PARSESRC) $(CLIENTSRC) $(EVENTSRC)
43+
44+
-all: $(LIBS)
45+
+all: $(LIBS) $(SOLIBS)
46+
+
47+
+@INSTALL_LIB@/libargus_client.la: $(CLIENTSO)
48+
+ rm -f $@
49+
+ libtool --mode=link $(CC) $(CCOPT) -o $@ -rpath $(DESTDIR)$(LIBDEST) $(CLIENTSO) $(COMPATLIB)
50+
51+
@INSTALL_LIB@/argus_common.a: $(COMMONOBJ)
52+
rm -f $@; ar qc $@ $(COMMONOBJ)

0 commit comments

Comments
 (0)