Update of /cvsroot/freevo/freevo In directory sc8-pr-cvs1:/tmp/cvs-serv20721
Modified Files: runapp.c Makefile Log Message: Added two additional targets for runapp: * runapp-debug - a dynamically linked runapp with logging * runapp-light - a dynamically linked runapp without logging The default target 'runapp' is still logging and static. Index: runapp.c =================================================================== RCS file: /cvsroot/freevo/freevo/runapp.c,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** runapp.c 22 Jun 2003 19:48:29 -0000 1.18 --- runapp.c 1 Jul 2003 01:50:47 -0000 1.19 *************** *** 350,353 **** --- 350,354 ---- log_init (void) { + #ifdef DEBUG char logfile[256]; time_t t; *************** *** 371,374 **** --- 372,376 ---- t = time ((time_t *) NULL); LOG ("Started on %s", ctime (&t)); + #endif } *************** *** 377,380 **** --- 379,383 ---- log_write (char *pBuf) { + #ifdef DEBUG if (log_fp == (FILE *) NULL) { return; *************** *** 386,390 **** /* Done */ return; ! } --- 389,393 ---- /* Done */ return; ! #endif } Index: Makefile =================================================================== RCS file: /cvsroot/freevo/freevo/Makefile,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** Makefile 28 Apr 2003 07:54:23 -0000 1.32 --- Makefile 1 Jul 2003 01:50:47 -0000 1.33 *************** *** 10,13 **** --- 10,21 ---- # ----------------------------------------------------------------------- # $Log$ + # Revision 1.33 2003/07/01 01:50:47 outlyer + # Added two additional targets for runapp: + # + # * runapp-debug - a dynamically linked runapp with logging + # * runapp-light - a dynamically linked runapp without logging + # + # The default target 'runapp' is still logging and static. + # # Revision 1.32 2003/04/28 07:54:23 tcwan # Changed 'make release' to exclude .cvsignore files *************** *** 111,115 **** runapp: runapp.c ! $(CC) $(CFLAGS) -static -o runapp runapp.c -DRUNAPP_LOGDIR=\"$(LOGDIR)\" strip runapp --- 119,133 ---- runapp: runapp.c ! $(CC) $(CFLAGS) -static -o runapp runapp.c -DRUNAPP_LOGDIR=\"$(LOGDIR)\" -DDEBUG ! strip runapp ! ! runapp-debug: runapp.c ! rm -f runapp ! $(CC) $(CFLAGS) -o runapp runapp.c -DRUNAPP_LOGDIR=\"$(LOGDIR)\" -DDEBUG ! strip runapp ! ! runapp-light: runapp.c ! rm -f runapp ! $(CC) $(CFLAGS) -o runapp runapp.c -DRUNAPP_LOGDIR=\"$(LOGDIR)\" strip runapp ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Freevo-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-cvslog