root/src/modules/Makefile.in

Revision ef59bc73bec75f7ab931c023663f3d3e50f569c4, 0.9 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 6 years ago)

cleanup some makefiles and code -- make it easier to see warnings

  • Property mode set to 100644
Line 
1 .SUFFIXES: .lo .@MODULEEXT@
2
3 CC=@CC@
4 LD=@LD@
5 CPPFLAGS=@CPPFLAGS@
6 CFLAGS=@CFLAGS@
7 SHCFLAGS=@SHCFLAGS@
8 MODULELD=@MODULELD@
9 MODULEEXT=@MODULEEXT@
10 LDFLAGS=@LDFLAGS@
11 AR=@AR@
12 RANLIB=@RANLIB@
13 LIBS=@LIBS@
14 INSTALL=@INSTALL@
15
16 top_srcdir=@top_srcdir@
17
18 MODULES=ping_icmp.@MODULEEXT@ http.@MODULEEXT@ @BUILD_MODULES@
19
20 all:    $(MODULES)
21
22 http.@MODULEEXT@:       http.lo
23         @$(MODULELD) $(LDFLAGS) -o $@ http.lo @SERFLIBS@ ../serf/.libs/libserf-0.a -lz -lssl -lcrypto
24         @echo "- linking $@"
25
26 http.lo:        http.c
27         @$(CC) $(CPPFLAGS) $(SHCFLAGS) -I$(top_srcdir)/src/serf @SERFCFLAGS@ -c http.c -o $@
28         @echo "- compiling $<"
29
30 snmp.@MODULEEXT@:       snmp.lo
31         @$(MODULELD) $(LDFLAGS) -o $@ snmp.lo -lnetsnmp
32         @echo "- linking $@"
33
34 ssh2.@MODULEEXT@:       ssh2.lo
35         @$(MODULELD) $(LDFLAGS) -o $@ ssh2.lo -lssh2
36         @echo "- linking $@"
37
38 .lo.@MODULEEXT@:
39         @$(MODULELD) $(LDFLAGS) -o $@ $<
40         @echo "- linking $@"
41
42 .c.lo:
43         @$(CC) $(CPPFLAGS) $(SHCFLAGS) -c $< -o $@
44         @echo "- compiling $<"
45
46 clean:
47         rm -f *.lo *.@MODULEEXT@
Note: See TracBrowser for help on using the browser.