root/src/modules/Makefile.in

Revision c4546c715aee6db46888e7ab0bb87fd2ce5357c6, 1.7 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 7 years ago)

I sure hope this doesn't break other platforms too badly. Solaris support sans the eventer... untested, of course. refs #32.

  • Property mode set to 100644
Line 
1 .SUFFIXES: .lo .@MODULEEXT@
2
3 CC=@CC@
4 LD=@LD@
5 CPPFLAGS=@CPPFLAGS@
6 CFLAGS=@CFLAGS@
7 PGCFLAGS=@PGCFLAGS@
8 SHCFLAGS=@SHCFLAGS@
9 MODULELD=@MODULELD@
10 MODULEEXT=@MODULEEXT@
11 LDFLAGS=@LDFLAGS@
12 AR=@AR@
13 RANLIB=@RANLIB@
14 LIBS=@LIBS@
15 PGLIBS=@PGLIBS@
16 INSTALL=@INSTALL@
17
18 top_srcdir=@top_srcdir@
19
20 MODULES=ping_icmp.@MODULEEXT@ http.@MODULEEXT@ postgres.@MODULEEXT@ \
21         lua.@MODULEEXT@ \
22         @BUILD_MODULES@
23
24 all:    $(MODULES)
25
26 lua.@MODULEEXT@:        lua.lo lua_noit.lo
27         @$(MODULELD) $(LDFLAGS) -o $@ lua.lo lua_noit.lo ../lua/liblua.lo
28         @echo "- linking $@"
29
30 lua.lo: lua.c
31         @$(CC) $(CPPFLAGS) $(SHCFLAGS) -I$(top_srcdir)/src/lua/src -c lua.c -o $@
32         @echo "- compiling $<"
33
34 lua_noit.lo:    lua_noit.c
35         @$(CC) $(CPPFLAGS) $(SHCFLAGS) -I$(top_srcdir)/src/lua/src -c lua_noit.c -o $@
36         @echo "- compiling $<"
37
38 postgres.@MODULEEXT@:   postgres.lo
39         @$(MODULELD) $(LDFLAGS) -o $@ postgres.lo @SERFLIBS@ $(PGLIBS) -lz -lssl -lcrypto
40         @echo "- linking $@"
41
42 postgres.lo:    postgres.c
43         @$(CC) $(CPPFLAGS) $(SHCFLAGS) $(PGCFLAGS) -c $< -o $@
44         @echo "- compiling $<"
45
46 http.@MODULEEXT@:       http.lo
47         @$(MODULELD) $(LDFLAGS) -o $@ http.lo @SERFLIBS@ ../serf/.libs/libserf-0.o -lz -lssl -lcrypto
48         @echo "- linking $@"
49
50 http.lo:        http.c
51         @$(CC) $(CPPFLAGS) $(SHCFLAGS) -I$(top_srcdir)/src/serf @SERFCFLAGS@ -c http.c -o $@
52         @echo "- compiling $<"
53
54 snmp.@MODULEEXT@:       snmp.lo
55         @$(MODULELD) $(LDFLAGS) -o $@ snmp.lo -lnetsnmp
56         @echo "- linking $@"
57
58 ssh2.@MODULEEXT@:       ssh2.lo
59         @$(MODULELD) $(LDFLAGS) -o $@ ssh2.lo -lssh2
60         @echo "- linking $@"
61
62 ping_icmp.@MODULEEXT@:  ping_icmp.lo
63         @$(MODULELD) $(LDFLAGS) -o $@ $<
64         @echo "- linking $@"
65
66 .lo.@MODULEEXT@:
67         @$(MODULELD) $(LDFLAGS) -o $@ $<
68         @echo "- linking $@"
69
70 .c.lo:
71         @$(CC) $(CPPFLAGS) $(SHCFLAGS) -c $< -o $@
72         @echo "- compiling $<"
73
74 clean:
75         rm -f *.lo *.@MODULEEXT@
Note: See TracBrowser for help on using the browser.