depend stuff

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1375 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-08-19 16:42:30 +00:00
parent f148cc891b
commit d3bdd36e46
12 changed files with 30 additions and 14 deletions

View File

@@ -171,7 +171,9 @@ db1-ast/libdb1.a:
exit 1; \ exit 1; \
fi fi
ifneq ($(wildcard .depend),)
include .depend include .depend
endif
_version: _version:
if [ -d CVS ] && ! [ -f .version ]; then echo "CVS-`date +"%D-%T"`" > .version; fi if [ -d CVS ] && ! [ -f .version ]; then echo "CVS-`date +"%D-%T"`" > .version; fi

View File

@@ -32,7 +32,9 @@ clean:
%.so : %.o %.so : %.o
$(CC) -shared -Xlinker -x -o $@ $< $(CC) -shared -Xlinker -x -o $@ $<
ifneq ($(wildcard .depend),)
include .depend include .depend
endif
depend: .depend depend: .depend

View File

@@ -75,7 +75,9 @@ app_sql_odbc.so: app_sql_odbc.o
look: look.c look: look.c
gcc -pipe -O6 -g look.c -o look -lncurses gcc -pipe -O6 -g look.c -o look -lncurses
ifneq ($(wildcard .depend),)
include .depend include .depend
endif
depend: .depend depend: .depend

View File

@@ -21,7 +21,9 @@ clean:
astman: astman.o ../md5.o astman: astman.o ../md5.o
$(CC) -o astman astman.o ../md5.o -lnewt $(CC) -o astman astman.o ../md5.o -lnewt
ifneq ($(wildcard .depend),)
include .depend include .depend
endif
depend: .depend depend: .depend

View File

@@ -40,7 +40,9 @@ clean:
%.so : %.o %.so : %.o
$(CC) -shared -Xlinker -x -o $@ $< $(CC) -shared -Xlinker -x -o $@ $<
ifneq ($(wildcard .depend),)
include .depend include .depend
endif
cdr_mysql.so: cdr_mysql.o cdr_mysql.so: cdr_mysql.o
$(CC) -shared -Xlinker -x -o $@ $< -lmysqlclient -lz $(MLFLAGS) $(CC) -shared -Xlinker -x -o $@ $< -lmysqlclient -lz $(MLFLAGS)

View File

@@ -73,7 +73,9 @@ clean:
%.so : %.o %.so : %.o
$(CC) -shared -Xlinker -x -o $@ $< $(CC) -shared -Xlinker -x -o $@ $<
ifneq ($(wildcard .depend),)
include .depend include .depend
endif
gentone: gentone.c gentone: gentone.c
$(CC) -o gentone gentone.c -lm $(CC) -o gentone gentone.c -lm

View File

@@ -9,29 +9,29 @@
#ifndef CONFIG_H #ifndef CONFIG_H
#define CONFIG_H #define CONFIG_H
/*efine SIGHANDLER_T int /* signal handlers are void */ //#define SIGHANDLER_T int /* signal handlers are void */
/*efine HAS_SYSV_SIGNAL 1 /* sigs not blocked/reset? */ //#define HAS_SYSV_SIGNAL 1 /* sigs not blocked/reset? */
#define HAS_STDLIB_H 1 /* /usr/include/stdlib.h */ #define HAS_STDLIB_H 1 /* /usr/include/stdlib.h */
/*efine HAS_LIMITS_H 1 /* /usr/include/limits.h */ //#define HAS_LIMITS_H 1 /* /usr/include/limits.h */
#define HAS_FCNTL_H 1 /* /usr/include/fcntl.h */ #define HAS_FCNTL_H 1 /* /usr/include/fcntl.h */
/*efine HAS_ERRNO_DECL 1 /* errno.h declares errno */ //#define HAS_ERRNO_DECL 1 /* errno.h declares errno */
#define HAS_FSTAT 1 /* fstat syscall */ #define HAS_FSTAT 1 /* fstat syscall */
#define HAS_FCHMOD 1 /* fchmod syscall */ #define HAS_FCHMOD 1 /* fchmod syscall */
#define HAS_CHMOD 1 /* chmod syscall */ #define HAS_CHMOD 1 /* chmod syscall */
#define HAS_FCHOWN 1 /* fchown syscall */ #define HAS_FCHOWN 1 /* fchown syscall */
#define HAS_CHOWN 1 /* chown syscall */ #define HAS_CHOWN 1 /* chown syscall */
/*efine HAS__FSETMODE 1 /* _fsetmode -- set file mode */ //#define HAS__FSETMODE 1 /* _fsetmode -- set file mode */
#define HAS_STRING_H 1 /* /usr/include/string.h */ #define HAS_STRING_H 1 /* /usr/include/string.h */
/*efine HAS_STRINGS_H 1 /* /usr/include/strings.h */ //#define HAS_STRINGS_H 1 /* /usr/include/strings.h */
#define HAS_UNISTD_H 1 /* /usr/include/unistd.h */ #define HAS_UNISTD_H 1 /* /usr/include/unistd.h */
#define HAS_UTIME 1 /* POSIX utime(path, times) */ #define HAS_UTIME 1 /* POSIX utime(path, times) */
/*efine HAS_UTIMES 1 /* use utimes() syscall instead */ //#define HAS_UTIMES 1 /* use utimes() syscall instead */
#define HAS_UTIME_H 1 /* UTIME header file */ #define HAS_UTIME_H 1 /* UTIME header file */
/*efine HAS_UTIMBUF 1 /* struct utimbuf */ //#define HAS_UTIMBUF 1 /* struct utimbuf */
/*efine HAS_UTIMEUSEC 1 /* microseconds in utimbuf? */ //#define HAS_UTIMEUSEC 1 /* microseconds in utimbuf? */
#endif /* CONFIG_H */ #endif /* CONFIG_H */

View File

@@ -8,9 +8,8 @@
#include "config.h" #include "config.h"
#ifdef HAS_STRING_H
#ifdef HAS_STDLIB_H #include <string.h>
#include <stdlib.h>
#else #else
# include "proto.h" # include "proto.h"
extern char * memcpy P((char *, char *, int)); extern char * memcpy P((char *, char *, int));
@@ -86,7 +85,6 @@ void Gsm_Coder P8((S,s,LARc,Nc,bc,Mc,xmaxc,xMc),
*/ */
{ register int i; { register int i;
register longword ltmp;
for (i = 0; i <= 39; i++) for (i = 0; i <= 39; i++)
dp[ i ] = GSM_ADD( e[5 + i], dpp[i] ); dp[ i ] = GSM_ADD( e[5 + i], dpp[i] );
} }

View File

@@ -40,7 +40,7 @@ clean:
rm -f $(LIBDB) $(LIBDBSO) $(OBJS) $(SHOBJS) rm -f $(LIBDB) $(LIBDBSO) $(OBJS) $(SHOBJS)
OORG= -O2 OORG= -O2
CL= $(CC) -c -D__DBINTERFACE_PRIVATE $(OORG) -I. -Iinclude CL= $(CC) -Wall -c -D__DBINTERFACE_PRIVATE $(OORG) -I. -Iinclude
db_dump185.o: db_dump185.c db_dump185.o: db_dump185.c
$(CL) -o $@ $< $(CL) -o $@ $<

View File

@@ -32,7 +32,9 @@ clean:
%.so : %.o %.so : %.o
$(CC) -shared -Xlinker -x -o $@ $< $(CC) -shared -Xlinker -x -o $@ $<
ifneq ($(wildcard .depend),)
include .depend include .depend
endif
format_mp3.so : format_mp3.o format_mp3.so : format_mp3.o
$(CC) -shared -Xlinker -x -o $@ $< -lm $(CC) -shared -Xlinker -x -o $@ $< -lm

View File

@@ -57,7 +57,9 @@ pbx_kdeconsole.so: $(KDE_CONSOLE_OBJS)
%.so : %.o %.so : %.o
$(CC) -shared -Xlinker -x -o $@ $< $(CC) -shared -Xlinker -x -o $@ $<
ifneq ($(wildcard .depend),)
include .depend include .depend
endif
install: all install: all
for x in $(PBX_LIBS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done for x in $(PBX_LIBS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done

View File

@@ -36,7 +36,9 @@ clean:
%.so : %.o %.so : %.o
$(CC) -shared -Xlinker -x -o $@ $< $(CC) -shared -Xlinker -x -o $@ $<
ifneq ($(wildcard .depend),)
include .depend include .depend
endif
depend: .depend depend: .depend