Restructure directories
It seems better to have seperated directories for different parts of the library and also put the suplementary service stuff into the same library. Signed-off-by: Karsten Keil <kkeil@linux-pingi.de>
This commit is contained in:
parent
5d589399aa
commit
cc22700354
|
@ -9,7 +9,7 @@ if OPT_GUI
|
|||
MAYBE_GUI = guitools
|
||||
endif
|
||||
|
||||
SUBDIRS = include lib suppserv tools bridge l1oip $(MAYBE_EXAMPLE) $(MAYBE_GUI)
|
||||
SUBDIRS = include lib tools bridge l1oip $(MAYBE_EXAMPLE) $(MAYBE_GUI)
|
||||
|
||||
CLEANFILES = *~
|
||||
|
||||
|
|
|
@ -89,7 +89,6 @@ AC_CONFIG_FILES([Makefile
|
|||
include/Makefile
|
||||
include/mISDN/mISDNcompat.h
|
||||
lib/Makefile
|
||||
suppserv/Makefile
|
||||
bridge/Makefile
|
||||
l1oip/Makefile
|
||||
tools/Makefile
|
||||
|
|
|
@ -1,7 +1,23 @@
|
|||
ASN1_SRC = asn1/asn1.c asn1/asn1_enc.c asn1/asn1_generic.c
|
||||
|
||||
SUPPSERV_SRC = suppserv/aoc.c suppserv/basic_service.c suppserv/component.c \
|
||||
suppserv/diversion.c suppserv/address.c suppserv/ccbs.c \
|
||||
suppserv/fac.c suppserv/ect.c
|
||||
|
||||
SUPPSERV_INC = suppserv/ccbs.h suppserv/diversion.h suppserv/ect.h suppserv/asn1.h
|
||||
|
||||
|
||||
MISC_SRC = misc/debug.c misc/fsm.c misc/mbuffer.c misc/mtimer.c
|
||||
|
||||
LAYER3_SRC = layer3/dss1net.c layer3/dss1user.c layer3/layer3.c layer3/mlayer3.c layer3/q931.c
|
||||
|
||||
INCLUDE_SRC = include/debug.h include/dss1.h include/fsm.h include/helper.h include/layer3.h \
|
||||
include/mlist.h include/mtimer.h $(SUPPSERV_INC)
|
||||
|
||||
lib_LTLIBRARIES = libmisdn.la
|
||||
libmisdn_la_SOURCES = debug.c debug.h dss1.h dss1net.c dss1user.c fsm.c fsm.h helper.h layer3.c layer3.h mbuffer.c mlayer3.c mlist.h mtimer.c mtimer.h q931.c
|
||||
libmisdn_la_LDFLAGS = -version-info 2:4:2
|
||||
libmisdn_la_SOURCES = $(MISC_SRC) $(LAYER3_SRC) $(INCLUDE_SRC) $(ASN1_SRC) $(SUPPSERV_SRC)
|
||||
libmisdn_la_LDFLAGS = -version-info 1:0:0
|
||||
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/include
|
||||
|
||||
CLEANFILES = *~
|
||||
CLEANFILES = *~ */*~
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* debug.h
|
||||
*
|
||||
*
|
||||
* Basic Layer3 functions
|
||||
*
|
||||
* Author Karsten Keil <kkeil@novell.com>
|
|
@ -1,5 +1,5 @@
|
|||
/* dss1.h
|
||||
*
|
||||
*
|
||||
* Author Karsten Keil <kkeil@novell.com>
|
||||
*
|
||||
* Copyright 2007 by Karsten Keil <kkeil@novell.com>
|
||||
|
@ -20,7 +20,7 @@
|
|||
|
||||
/*
|
||||
* Timer values
|
||||
*/
|
||||
*/
|
||||
#define T302 15000
|
||||
#define T303 4000
|
||||
#define T304 30000
|
|
@ -1,6 +1,6 @@
|
|||
/* $Id: fsm.h,v 2.0 2007/06/29 14:35:31 kkeil Exp $
|
||||
*
|
||||
*
|
||||
*
|
||||
* Author Karsten Keil <kkeil@novell.com>
|
||||
*
|
||||
* Copyright 2007 by Karsten Keil <kkeil@novell.com>
|
||||
|
@ -61,4 +61,3 @@ extern void FsmInitTimer(struct FsmInst *, struct FsmTimer *);
|
|||
extern int FsmAddTimer(struct FsmTimer *, int, int, void *, int);
|
||||
extern void FsmRestartTimer(struct FsmTimer *, int, int, void *, int);
|
||||
extern void FsmDelTimer(struct FsmTimer *, int);
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
/* helper.h
|
||||
*
|
||||
* some helper functions
|
||||
* some helper functions
|
||||
*
|
||||
* Author Karsten Keil <kkeil@novell.com>
|
||||
*
|
||||
|
@ -37,7 +37,7 @@
|
|||
#define container_of(ptr, type, member) ({ \
|
||||
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
|
||||
(type *)( (char *)__mptr - offsetof(type,member) );})
|
||||
|
||||
|
||||
|
||||
/* Simple replacement for the NON-ATOMIC routines which asm/bitops.h
|
||||
was providing. */
|
|
@ -1,5 +1,5 @@
|
|||
/* layer3.h
|
||||
*
|
||||
*
|
||||
* Author Karsten Keil <kkeil@novell.com>
|
||||
*
|
||||
* Copyright 2007 by Karsten Keil <kkeil@novell.com>
|
|
@ -3,7 +3,7 @@
|
|||
* Simple doubly linked list implementation and helper
|
||||
* function reduce version of linux kernel list.h
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _MLIST_H
|
||||
#define _MLIST_H
|
||||
|
||||
|
@ -90,7 +90,7 @@ static inline int list_empty(const struct list_head *head)
|
|||
*/
|
||||
#define list_for_each(pos, head) \
|
||||
for (pos = (head)->next; pos != (head); \
|
||||
pos = pos->next)
|
||||
pos = pos->next)
|
||||
|
||||
/*
|
||||
* list_for_each_entry - iterate over list of given type
|
|
@ -1,5 +1,5 @@
|
|||
/* mtimer.h
|
||||
*
|
||||
*
|
||||
* Author Karsten Keil <kkeil@novell.com>
|
||||
*
|
||||
* Copyright 2007 by Karsten Keil <kkeil@novell.com>
|
|
@ -31,7 +31,7 @@ const char *l3_revision = "$Revision: 2.00 $";
|
|||
enum {
|
||||
ST_L3_LC_REL,
|
||||
ST_L3_LC_ESTAB_WAIT,
|
||||
ST_L3_LC_REL_DELAY,
|
||||
ST_L3_LC_REL_DELAY,
|
||||
ST_L3_LC_REL_WAIT,
|
||||
ST_L3_LC_ESTAB,
|
||||
};
|
||||
|
@ -291,7 +291,7 @@ static void
|
|||
l3dss1_setup(l3_process_t *pc, unsigned int pr, struct l3_msg *l3m)
|
||||
{
|
||||
int err = 0;
|
||||
|
||||
|
||||
/*
|
||||
* Bearer Capabilities
|
||||
*/
|
||||
|
@ -355,7 +355,7 @@ l3dss1_disconnect(l3_process_t *pc, unsigned int pr, struct l3_msg *l3m)
|
|||
if (ret) {
|
||||
if (pc->L3->debug & L3_DEB_WARN)
|
||||
mIl3_debug(pc->L3, "DISC get_cause ret(%d)", ret);
|
||||
}
|
||||
}
|
||||
mISDN_l3up(pc, MT_DISCONNECT, l3m);
|
||||
}
|
||||
|
||||
|
@ -619,7 +619,7 @@ l3dss1_hold(l3_process_t *pc, unsigned int pr, struct l3_msg *l3m)
|
|||
l3dss1_message_cause(pc, MT_HOLD_REJECT, CAUSE_NOTCOMPAT_STATE);
|
||||
return;
|
||||
}
|
||||
pc->aux_state = AUX_HOLD_IND;
|
||||
pc->aux_state = AUX_HOLD_IND;
|
||||
|
||||
mISDN_l3up(pc, MT_HOLD, l3m);
|
||||
}
|
||||
|
@ -736,7 +736,7 @@ static l3_process_t
|
|||
newl3state(pc, state);
|
||||
send_proc(p3i, IMSG_L2_DATA, l3m);
|
||||
return(p3i);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
l3dss1_setup_acknowledge_m(l3_process_t *pc, unsigned int pr, struct l3_msg *l3m)
|
||||
|
@ -873,7 +873,7 @@ static struct stateentry mdatastatelist[] =
|
|||
|
||||
#define MDATASLLEN \
|
||||
(sizeof(mdatastatelist) / sizeof(struct stateentry))
|
||||
|
||||
|
||||
static void
|
||||
l3dss1_setup_ack_req(l3_process_t *pc, unsigned int pr, struct l3_msg *l3m)
|
||||
{
|
||||
|
@ -1009,7 +1009,7 @@ l3dss1_information_req(l3_process_t *pc, unsigned int pr, struct l3_msg *l3m)
|
|||
{
|
||||
if (pc->state == 25 && !test_bit(MISDN_FLG_PTP, &pc->L3->ml3.options))
|
||||
return;
|
||||
|
||||
|
||||
if (l3m) {
|
||||
// if (pc->state != 25)
|
||||
SendMsg(pc, l3m, -1);
|
||||
|
@ -1275,7 +1275,7 @@ l3dss1_holdack_req(l3_process_t *pc, unsigned int pr, struct l3_msg *l3m)
|
|||
{
|
||||
if (pc->aux_state != AUX_HOLD_IND)
|
||||
return;
|
||||
pc->aux_state = AUX_CALL_HELD;
|
||||
pc->aux_state = AUX_CALL_HELD;
|
||||
if (l3m) {
|
||||
SendMsg(pc, l3m, -1);
|
||||
} else {
|
||||
|
@ -1314,7 +1314,7 @@ l3dss1_retrrej_req(l3_process_t *pc, unsigned int pr, struct l3_msg *l3m)
|
|||
{
|
||||
if (pc->aux_state != AUX_RETRIEVE_IND)
|
||||
return;
|
||||
pc->aux_state = AUX_CALL_HELD;
|
||||
pc->aux_state = AUX_CALL_HELD;
|
||||
if (!l3m->cause)
|
||||
l3dss1_message_cause(pc,
|
||||
MT_RETRIEVE_REJECT, CAUSE_NORMALUNSPECIFIED);
|
||||
|
@ -1407,14 +1407,14 @@ l3dss1_global_restart(l3_process_t *pc, unsigned int pr, struct l3_msg *l3m)
|
|||
}
|
||||
newl3state(pc, 2);
|
||||
list_for_each_entry_safe(up, n, &pc->L3->plist, list) {
|
||||
if ((ri & 6) == 6)
|
||||
if ((ri & 6) == 6)
|
||||
dss1man(up, MT_RESTART, NULL);
|
||||
else if (test_bit(FLG_BASICRATE, &pc->L3->ml3.options)) {
|
||||
if ((up->cid[1] & 3) == (pc->cid[1] & 3))
|
||||
dss1man(up, MT_RESTART, NULL);
|
||||
} else {
|
||||
if ((up->cid[3] & 0x7f) == (pc->cid[3] & 0x7f))
|
||||
dss1man(up, MT_RESTART, NULL);
|
||||
dss1man(up, MT_RESTART, NULL);
|
||||
}
|
||||
}
|
||||
nl3m = MsgStart(pc, MT_RESTART_ACKNOWLEDGE);
|
||||
|
@ -1648,7 +1648,7 @@ send_proc(l3_process_t *proc, int op, void *arg)
|
|||
|
||||
if (proc->L3 && proc->L3->debug & L3_DEB_PROC)
|
||||
mIl3_debug(proc->L3, "%s: proc(%x) op(%d)", __FUNCTION__,
|
||||
proc->pid, op);
|
||||
proc->pid, op);
|
||||
switch(op) {
|
||||
case IMSG_END_PROC:
|
||||
case IMSG_END_PROC_M:
|
||||
|
@ -1800,7 +1800,7 @@ dl_data_mux(layer3_t *l3, struct mbuffer *msg)
|
|||
goto freemsg;
|
||||
ret = parseQ931(msg);
|
||||
if (ret & Q931_ERROR_FATAL) {
|
||||
fprintf(stderr, "dss1up: parse IE error %x\n", ret);
|
||||
fprintf(stderr, "dss1up: parse IE error %x\n", ret);
|
||||
goto freemsg;
|
||||
}
|
||||
dprint(DBGM_L3, msg->addr.dev, "%s: mt(%x) pid(%x) crlen(%d)\n", __FUNCTION__, msg->l3.type, msg->l3.pid, msg->l3h.crlen);
|
||||
|
@ -1819,7 +1819,7 @@ dl_data_mux(layer3_t *l3, struct mbuffer *msg)
|
|||
if (!proc) {
|
||||
if (msg->l3.type == MT_SETUP || msg->l3.type == MT_RESUME || msg->l3.type == MT_REGISTER) {
|
||||
/* Setup/Resume creates a new transaction process */
|
||||
|
||||
|
||||
if (msg->l3.pid & 0x8000) {
|
||||
/* Setup/Resume with wrong CREF flag */
|
||||
if (l3->debug & L3_DEB_STATE)
|
||||
|
@ -1880,7 +1880,7 @@ dl_data_mux(layer3_t *l3, struct mbuffer *msg)
|
|||
* if setup has not been made and a message type
|
||||
* (except MT_SETUP and RELEASE_COMPLETE) is received,
|
||||
* we must send MT_RELEASE_COMPLETE cause 81 */
|
||||
|
||||
|
||||
dprint(DBGM_L3, msg->addr.dev, "%s: mt(%x) without callref (maybe former process)\n", __FUNCTION__, msg->l3.type);
|
||||
if ((proc = create_new_process(l3, msg->addr.channel,msg->l3h.cr, NULL))) {
|
||||
l3dss1_msg_without_setup(proc, CAUSE_INVALID_CALLREF);
|
||||
|
@ -1969,4 +1969,3 @@ struct l3protocol dss1net = {
|
|||
.protocol = L3_PROTOCOL_DSS1_NET ,
|
||||
.init = dss1_net_init
|
||||
};
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
/* dss1user.c
|
||||
*
|
||||
*
|
||||
* Author Karsten Keil <kkeil@novell.com>
|
||||
*
|
||||
* Copyright 2007 by Karsten Keil <kkeil@novell.com>
|
||||
|
@ -232,7 +232,7 @@ check_infoelements(l3_process_t *pc, struct l3_msg *l3m, int *checklist, int mt)
|
|||
if (l3m->comprehension_req) {
|
||||
err_compr++;
|
||||
}
|
||||
|
||||
|
||||
if (err_compr)
|
||||
return Q931_ERROR_COMPREH;
|
||||
if (err_ureg)
|
||||
|
@ -765,7 +765,7 @@ l3dss1_disconnect(l3_process_t *pc, unsigned int pr, struct l3_msg *l3m)
|
|||
newl3state(pc, 19);
|
||||
else
|
||||
newl3state(pc, 12);
|
||||
if (11 != ret) {
|
||||
if (11 != ret) {
|
||||
mISDN_l3up(pc, MT_DISCONNECT, l3m);
|
||||
} else if (!cause) {
|
||||
l3dss1_release_req(pc, pr, NULL);
|
||||
|
@ -967,10 +967,10 @@ l3dss1_progress(l3_process_t *pc, unsigned int pr, struct l3_msg *l3m) {
|
|||
err = check_infoelements(pc, l3m, ie_PROGRESS, MT_PROGRESS);
|
||||
if (err)
|
||||
l3dss1_std_ie_err(pc, err);
|
||||
/*
|
||||
* clear T310 if running (should be cleared by a Progress
|
||||
* Message, according to ETSI).
|
||||
*
|
||||
/*
|
||||
* clear T310 if running (should be cleared by a Progress
|
||||
* Message, according to ETSI).
|
||||
*
|
||||
*/
|
||||
L3DelTimer(&pc->timer1);
|
||||
if (pc->t303msg) {
|
||||
|
@ -1280,14 +1280,14 @@ l3dss1_global_restart(l3_process_t *pc, unsigned int pr, struct l3_msg *l3m)
|
|||
}
|
||||
newl3state(pc, 2);
|
||||
list_for_each_entry_safe(up, n, &pc->L3->plist, list) {
|
||||
if ((ri & 6) == 6)
|
||||
if ((ri & 6) == 6)
|
||||
dss1man(up, MT_RESTART, NULL);
|
||||
else if (test_bit(FLG_BASICRATE, &pc->L3->ml3.options)) {
|
||||
if ((up->cid[1] & 3) == (pc->cid[1] & 3))
|
||||
dss1man(up, MT_RESTART, NULL);
|
||||
} else {
|
||||
if ((up->cid[3] & 0x7f) == (pc->cid[3] & 0x7f))
|
||||
dss1man(up, MT_RESTART, NULL);
|
||||
dss1man(up, MT_RESTART, NULL);
|
||||
}
|
||||
}
|
||||
nl3m = MsgStart(pc, MT_RESTART_ACKNOWLEDGE);
|
||||
|
@ -1754,14 +1754,14 @@ static void
|
|||
l3dss1_t305(l3_process_t *pc, unsigned int pr, struct l3_msg *l3m)
|
||||
{
|
||||
int cause;
|
||||
|
||||
|
||||
L3DelTimer(&pc->timer1);
|
||||
if (pc->cause != NO_CAUSE) {
|
||||
cause = pc->cause;
|
||||
} else {
|
||||
cause = CAUSE_NORMAL_CLEARING;
|
||||
}
|
||||
|
||||
|
||||
newl3state(pc, 19);
|
||||
l3dss1_message_cause(pc, MT_RELEASE, cause);
|
||||
L3AddTimer(&pc->timer1, T308, CC_T308_1);
|
||||
|
@ -2133,7 +2133,7 @@ dss1_fromdown(layer3_t *l3, struct mbuffer *msg)
|
|||
goto freemsg;
|
||||
ret = parseQ931(msg);
|
||||
if (ret & Q931_ERROR_FATAL) {
|
||||
eprint("dss1up: parse IE error %x\n", ret);
|
||||
eprint("dss1up: parse IE error %x\n", ret);
|
||||
goto freemsg;
|
||||
}
|
||||
if (msg->l3h.crlen == 0) { /* Dummy Callref */
|
||||
|
@ -2216,7 +2216,7 @@ dss1_fromdown(layer3_t *l3, struct mbuffer *msg)
|
|||
* if setup has not been made and a message type
|
||||
* (except MT_SETUP and RELEASE_COMPLETE) is received,
|
||||
* we must send MT_RELEASE_COMPLETE cause 81 */
|
||||
|
||||
|
||||
dprint(DBGM_L3, msg->addr.dev, "%s: mt(%x) without callref (maybe former process)\n", __FUNCTION__, msg->l3.type);
|
||||
if ((proc = create_new_process(l3, msg->addr.channel,msg->l3h.cr, NULL))) {
|
||||
l3dss1_msg_without_setup(proc, CAUSE_INVALID_CALLREF);
|
||||
|
@ -2331,4 +2331,3 @@ struct l3protocol dss1user = {
|
|||
.protocol = L3_PROTOCOL_DSS1_USER ,
|
||||
.init = dss1_user_init
|
||||
};
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
/* layer3.c
|
||||
*
|
||||
*
|
||||
* Basic Layer3 functions
|
||||
*
|
||||
* Author Karsten Keil <kkeil@novell.com>
|
||||
|
@ -254,7 +254,7 @@ create_new_process(layer3_t *l3, unsigned int ces, unsigned int cr, l3_process_t
|
|||
l3_process_t *pc;
|
||||
unsigned int max_cr = 0x7fff;
|
||||
int try;
|
||||
|
||||
|
||||
|
||||
if ((cr & 0xffff) > 0) { /* remote owned callref */
|
||||
pc = get_l3process4pid(l3, ((ces & 0xff) << 16) | cr);
|
||||
|
@ -312,12 +312,12 @@ SendMsg(l3_process_t *pc, struct l3_msg *l3m, int state) {
|
|||
int ret;
|
||||
struct mbuffer *mb = container_of(l3m, struct mbuffer, l3);
|
||||
|
||||
|
||||
|
||||
ret = assembleQ931(pc, l3m);
|
||||
if (ret) {
|
||||
eprint("%s assembleQ931 error %x\n", __FUNCTION__, ret);
|
||||
free_l3_msg(l3m);
|
||||
return;
|
||||
return;
|
||||
}
|
||||
if (state != -1)
|
||||
newl3state(pc, state);
|
||||
|
@ -987,4 +987,3 @@ l3_stop(struct _layer3 *l3)
|
|||
if (ret)
|
||||
eprint("%s cannot join worker thread %s\n", __FUNCTION__, strerror(errno));
|
||||
}
|
||||
|
|
@ -70,7 +70,7 @@ open_layer3(unsigned int dev, unsigned int proto, unsigned int prop, mlayer3_cb_
|
|||
int set = 1;
|
||||
|
||||
if (__init_done == 0) {
|
||||
fprintf(stderr, "You should call init_layer3(nr of message cache entres) first\n");
|
||||
fprintf(stderr, "You should call init_layer3(nr of message cache entres) first\n");
|
||||
init_layer3(10);
|
||||
}
|
||||
fd = socket(PF_ISDN, SOCK_RAW, ISDN_P_BASE);
|
||||
|
@ -87,14 +87,14 @@ open_layer3(unsigned int dev, unsigned int proto, unsigned int prop, mlayer3_cb_
|
|||
iprint("mISDN kernel version %d.%02d.%d found\n", ver.major, ver.minor, ver.release);
|
||||
iprint("mISDN user version %d.%02d.%d found\n", MISDN_MAJOR_VERSION, MISDN_MINOR_VERSION, MISDN_RELEASE);
|
||||
iprint("mISDN library interface version %d release %d\n", MISDN_LIB_VERSION, MISDN_LIB_RELEASE);
|
||||
|
||||
|
||||
if (ver.major != MISDN_MAJOR_VERSION) {
|
||||
fprintf(stderr, "VERSION incompatible please update\n");
|
||||
close(fd);
|
||||
return NULL;
|
||||
}
|
||||
/* handle version backward compatibility specific stuff here */
|
||||
|
||||
|
||||
l3 = calloc(1, sizeof(struct _layer3));
|
||||
if (!l3)
|
||||
return NULL;
|
||||
|
@ -167,14 +167,14 @@ open_layer3(unsigned int dev, unsigned int proto, unsigned int prop, mlayer3_cb_
|
|||
if (test_bit(MISDN_FLG_L2_CLEAN, &l3->ml3.options)
|
||||
&& proto == L3_PROTOCOL_DSS1_NET) {
|
||||
ret = ioctl(fd, IMCLEAR_L2, &set);
|
||||
if (ret < 0) {
|
||||
if (ret < 0) {
|
||||
fprintf(stderr, "could not send IOCTL IMCLEAN_L2 %s\n", strerror(errno));
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
if (test_bit(MISDN_FLG_L1_HOLD, &l3->ml3.options)) {
|
||||
ret = ioctl(fd, IMHOLD_L1, &set);
|
||||
if (ret < 0) {
|
||||
if (ret < 0) {
|
||||
fprintf(stderr, "could not send IOCTL IMHOLD_L1 %s\n", strerror(errno));
|
||||
goto fail;
|
||||
}
|
|
@ -76,7 +76,7 @@ int
|
|||
parseQ931(struct mbuffer *mb) {
|
||||
int codeset, maincodeset;
|
||||
int iep, err = 0, eidx = -1;
|
||||
unsigned char *p, ie, **v_ie = &mb->l3.bearer_capability;
|
||||
unsigned char *p, ie, **v_ie = &mb->l3.bearer_capability;
|
||||
|
||||
__msg_pull(mb, 1);
|
||||
mb->l3h.crlen = *__msg_pull(mb, 1);
|
|
@ -1,5 +1,5 @@
|
|||
/* debug.c
|
||||
*
|
||||
*
|
||||
* Basic Layer3 functions
|
||||
*
|
||||
* Author Karsten Keil <kkeil@novell.com>
|
||||
|
@ -101,7 +101,7 @@ dprint(unsigned int mask, int port, const char *fmt, ...)
|
|||
va_list args;
|
||||
time_t tm = time(NULL);
|
||||
char *tmp=ctime(&tm),*p;
|
||||
|
||||
|
||||
p=strchr(tmp,'\n');
|
||||
if (p) *p=':';
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
/* $Id: fsm.c,v 2.0 2004/06/29 14:35:31 kkeil Exp $
|
||||
*
|
||||
*
|
||||
*
|
||||
* Author Karsten Keil <kkeil@novell.com>
|
||||
*
|
||||
* Copyright 2007 by Karsten Keil <kkeil@novell.com>
|
||||
|
@ -34,12 +34,12 @@ FsmNew(struct Fsm *fsm,
|
|||
if (!fsm->jumpmatrix)
|
||||
return;
|
||||
memset(fsm->jumpmatrix, 0, sizeof (FSMFNPTR) * fsm->state_count * fsm->event_count);
|
||||
for (i = 0; i < fncount; i++)
|
||||
for (i = 0; i < fncount; i++)
|
||||
if ((fnlist[i].state>=fsm->state_count) || (fnlist[i].event>=fsm->event_count)) {
|
||||
fprintf(stderr, "FsmNew Error line %d st(%ld/%ld) ev(%ld/%ld)\n",
|
||||
i,(long)fnlist[i].state,(long)fsm->state_count,
|
||||
(long)fnlist[i].event,(long)fsm->event_count);
|
||||
} else
|
||||
} else
|
||||
fsm->jumpmatrix[fsm->state_count * fnlist[i].event +
|
||||
fnlist[i].state] = (FSMFNPTR) fnlist[i].routine;
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
/* mtimer.c
|
||||
*
|
||||
*
|
||||
* Author Karsten Keil <kkeil@novell.com>
|
||||
*
|
||||
* Copyright 2007 by Karsten Keil <kkeil@novell.com>
|
|
@ -122,8 +122,6 @@ ldconfig
|
|||
|
||||
%{_libdir}/libmisdn.so.0
|
||||
%{_libdir}/libmisdn.so.0.2.1
|
||||
%{_libdir}/libsuppserv.so.0
|
||||
%{_libdir}/libsuppserv.so.0.1.1
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
|
@ -132,9 +130,6 @@ ldconfig
|
|||
%attr (0644, root, root) %{_libdir}/libmisdn.a
|
||||
%attr (0644, root, root) %{_libdir}/libmisdn.la
|
||||
%attr (0644, root, root) %{_libdir}/libmisdn.so
|
||||
%attr (0644, root, root) %{_libdir}/libsuppserv.so
|
||||
%attr (0644, root, root) %{_libdir}/libsuppserv.a
|
||||
%attr (0644, root, root) %{_libdir}/libsuppserv.la
|
||||
|
||||
%files gui
|
||||
%defattr(-,root,root)
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
lib_LTLIBRARIES = libsuppserv.la
|
||||
libsuppserv_la_SOURCES = asn1.c asn1_enc.c asn1_generic.c asn1_aoc.c asn1_basic_service.c asn1_comp.c \
|
||||
asn1_diversion.c asn1_address.c asn1_ccbs.c asn1_ccbs.h fac.c asn1_diversion.h \
|
||||
asn1_ect.c asn1_ect.h asn1.h
|
||||
libsuppserv_la_LDFLAGS = -version-info 2:0:0
|
||||
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/include
|
||||
|
||||
CLEANFILES = *~
|
|
@ -1,540 +0,0 @@
|
|||
# Makefile.in generated by automake 1.11.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
|
||||
# Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
VPATH = @srcdir@
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
subdir = suppserv
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/include/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
*) f=$$p;; \
|
||||
esac;
|
||||
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
|
||||
am__install_max = 40
|
||||
am__nobase_strip_setup = \
|
||||
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
|
||||
am__nobase_strip = \
|
||||
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
|
||||
am__nobase_list = $(am__nobase_strip_setup); \
|
||||
for p in $$list; do echo "$$p $$p"; done | \
|
||||
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
|
||||
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
|
||||
if (++n[$$2] == $(am__install_max)) \
|
||||
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
|
||||
END { for (dir in files) print dir, files[dir] }'
|
||||
am__base_list = \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
|
||||
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
|
||||
am__installdirs = "$(DESTDIR)$(libdir)"
|
||||
LTLIBRARIES = $(lib_LTLIBRARIES)
|
||||
libsuppserv_la_LIBADD =
|
||||
am_libsuppserv_la_OBJECTS = asn1.lo asn1_enc.lo asn1_generic.lo \
|
||||
asn1_aoc.lo asn1_basic_service.lo asn1_comp.lo \
|
||||
asn1_diversion.lo asn1_address.lo fac.lo
|
||||
libsuppserv_la_OBJECTS = $(am_libsuppserv_la_OBJECTS)
|
||||
libsuppserv_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
|
||||
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
|
||||
$(libsuppserv_la_LDFLAGS) $(LDFLAGS) -o $@
|
||||
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include
|
||||
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
||||
am__depfiles_maybe = depfiles
|
||||
am__mv = mv -f
|
||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
||||
--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
||||
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
CCLD = $(CC)
|
||||
LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
||||
--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
|
||||
$(LDFLAGS) -o $@
|
||||
SOURCES = $(libsuppserv_la_SOURCES)
|
||||
DIST_SOURCES = $(libsuppserv_la_SOURCES)
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AF_ISDN_VAL = @AF_ISDN_VAL@
|
||||
AMTAR = @AMTAR@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
CXXDEPMODE = @CXXDEPMODE@
|
||||
CXXFLAGS = @CXXFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GREP = @GREP@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MISDN_AF_ISDN_VAL = @MISDN_AF_ISDN_VAL@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
QMAKE = @QMAKE@
|
||||
RANLIB = @RANLIB@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_CXX = @ac_ct_CXX@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
lt_ECHO = @lt_ECHO@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
lib_LTLIBRARIES = libsuppserv.la
|
||||
libsuppserv_la_SOURCES = asn1.c asn1_enc.c asn1_generic.c asn1_aoc.c asn1_basic_service.c asn1_comp.c asn1_diversion.c asn1_address.c fac.c asn1_diversion.h asn1.h
|
||||
libsuppserv_la_LDFLAGS = -version-info 1:1:1
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/include
|
||||
CLEANFILES = *~
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .lo .o .obj
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign suppserv/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign suppserv/Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
|
||||
@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
|
||||
list2=; for p in $$list; do \
|
||||
if test -f $$p; then \
|
||||
list2="$$list2 $$p"; \
|
||||
else :; fi; \
|
||||
done; \
|
||||
test -z "$$list2" || { \
|
||||
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
|
||||
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
|
||||
}
|
||||
|
||||
uninstall-libLTLIBRARIES:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
|
||||
for p in $$list; do \
|
||||
$(am__strip_dir) \
|
||||
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
|
||||
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
|
||||
done
|
||||
|
||||
clean-libLTLIBRARIES:
|
||||
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
|
||||
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
|
||||
test "$$dir" != "$$p" || dir=.; \
|
||||
echo "rm -f \"$${dir}/so_locations\""; \
|
||||
rm -f "$${dir}/so_locations"; \
|
||||
done
|
||||
libsuppserv.la: $(libsuppserv_la_OBJECTS) $(libsuppserv_la_DEPENDENCIES)
|
||||
$(libsuppserv_la_LINK) -rpath $(libdir) $(libsuppserv_la_OBJECTS) $(libsuppserv_la_LIBADD) $(LIBS)
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.$(OBJEXT)
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asn1.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asn1_address.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asn1_aoc.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asn1_basic_service.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asn1_comp.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asn1_diversion.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asn1_enc.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asn1_generic.Plo@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fac.Plo@am__quote@
|
||||
|
||||
.c.o:
|
||||
@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
|
||||
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
|
||||
@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ $<
|
||||
|
||||
.c.obj:
|
||||
@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
|
||||
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
|
||||
@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
||||
|
||||
.c.lo:
|
||||
@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
|
||||
@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
|
||||
@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
set x; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
shift; \
|
||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
if test $$# -gt 0; then \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
"$$@" $$unique; \
|
||||
else \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$unique; \
|
||||
fi; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& $(am__cd) $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) "$$here"
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(LTLIBRARIES)
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(libdir)"; do \
|
||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
|
||||
mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-compile distclean-generic \
|
||||
distclean-tags
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am: install-libLTLIBRARIES
|
||||
|
||||
install-html: install-html-am
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-am
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-am
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
||||
mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-libLTLIBRARIES
|
||||
|
||||
.MAKE: install-am install-strip
|
||||
|
||||
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
|
||||
clean-libLTLIBRARIES clean-libtool ctags distclean \
|
||||
distclean-compile distclean-generic distclean-libtool \
|
||||
distclean-tags distdir dvi dvi-am html html-am info info-am \
|
||||
install install-am install-data install-data-am install-dvi \
|
||||
install-dvi-am install-exec install-exec-am install-html \
|
||||
install-html-am install-info install-info-am \
|
||||
install-libLTLIBRARIES install-man install-pdf install-pdf-am \
|
||||
install-ps install-ps-am install-strip installcheck \
|
||||
installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
||||
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||
tags uninstall uninstall-am uninstall-libLTLIBRARIES
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
Loading…
Reference in New Issue