# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-CC=gcc
OBJS=hashtable.o hashtable_itr.o openzap.o zap_config.o
-CFLAGS=$(USER_CFLAGS) -Iinclude -Wall -Werror -Wextra -std=c99 -pedantic -ansi
+CFLAGS=$(ZAP_CFLAGS) -Iinclude
MYLIB=libopenzap.a
-CFLAGS +=-DZAP_WANPIPE_SUPPORT
-OBJS += zap_wanpipe.o
-
-#CFLAGS +=-DZAP_ZT_SUPPORT
-#OBJS += zap_zt.o
-
+include general.makefile $(ZAP_MODS)
$(MYLIB): $(OBJS)
ar rcs $(MYLIB) $(OBJS)
--- /dev/null
+CC=gcc
+CFLAGS += -Wall -Werror -Wextra -std=c99 -pedantic -ansi
+
/*****************************************************************************/
unsigned int
-hash(struct hashtable *h, void *k);
+hash(struct hashtable *h, const void *k);
/*****************************************************************************/
/* indexFor */
zap_config_t cfg;
char *var, *val;
unsigned configured = 0;
- zap_software_interface_t *zint = NULL;
+ zap_software_interface_t *zint;
- zint, 0;
-
globals.interface_hash = create_hashtable(16, hashfromstring, equalkeys);
+ zint = NULL;
#ifdef ZAP_WANPIPE_SUPPORT
if (wanpipe_init(&zint) == ZAP_SUCCESS) {
hashtable_insert(globals.interface_hash, (void *)zint->name, zint);
}
#endif
+ zint = NULL;
#ifdef ZAP_ZT_SUPPORT
if (zt_init(&zint) == ZAP_SUCCESS) {
hashtable_insert(globals.interface_hash, (void *)zint->name, zint);
--- /dev/null
+CFLAGS +=-DZAP_WANPIPE_SUPPORT
+OBJS += zap_wanpipe.o
--- /dev/null
+CFLAGS +=-DZAP_ZT_SUPPORT
+OBJS += zap_zt.o