Thu, 04 Dec 2008 20:16:30 +0500
Change modules to use the new add_feature module API method.
This also fixes the bug causing disco features being added to every disco reply for every host.
442
722f63c70a77
Makefile now works on windows with Microsoft's compiler
Waqas Hussain <waqas20@gmail.com>
parents:
418
diff
changeset
|
1 | |
463
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
445
diff
changeset
|
2 | include ../config.unix |
418
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
3 | |
463
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
445
diff
changeset
|
4 | LUA_SUFFIX?=5.1 |
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
445
diff
changeset
|
5 | LUA_INCDIR?=/usr/include/lua$(LUA_SUFFIX) |
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
445
diff
changeset
|
6 | LUA_LIB?=lua$(LUA_SUFFIX) |
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
445
diff
changeset
|
7 | IDN_LIB?=idn |
511
f9ab28562fda
Potential fixes for building on Mac OSX
Matthew Wild <mwild1@gmail.com>
parents:
491
diff
changeset
|
8 | OPENSSL_LIB?=crypto |
418
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
9 | |
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
10 | |
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
11 | |
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
12 | all: encodings.so hashes.so |
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
13 | |
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
14 | install: encodings.so hashes.so |
513
cadc9d6db7d8
Use install to strip symbols
Matthew Wild <mwild1@gmail.com>
parents:
511
diff
changeset
|
15 | install -s *.so ../util/ |
418
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
16 | |
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
17 | |
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
18 | clean: |
463
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
445
diff
changeset
|
19 | rm -f *.so |
a2452d3bd828
Add a top-level Makefile and ./configure script. Update util-src Makefile for this.
Matthew Wild <mwild1@gmail.com>
parents:
445
diff
changeset
|
20 | rm -f ../util/*.so |
418
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
21 | |
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
22 | encodings.so: encodings.c |
511
f9ab28562fda
Potential fixes for building on Mac OSX
Matthew Wild <mwild1@gmail.com>
parents:
491
diff
changeset
|
23 | gcc $(CFLAGS) encodings.c -I$(LUA_INCDIR) -l$(LUA_LIB) -l$(IDN_LIB) -o encodings.so |
418
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
24 | |
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
25 | hashes.so: hashes.c |
511
f9ab28562fda
Potential fixes for building on Mac OSX
Matthew Wild <mwild1@gmail.com>
parents:
491
diff
changeset
|
26 | gcc $(CFLAGS) hashes.c -I$(LUA_INCDIR) -l$(LUA_LIB) -l$(OPENSSL_LIB) -o hashes.so |
418
004c278154dc
Add rough Makefile for util-src/
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
27 |