Update of /cvsroot/galaxyng/NG/lib
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv22917
Modified Files:
Tag: Refactor_Baseline
Makefile mail.c
Removed Files:
Tag: Refactor_Baseline
libgd.a
Log Message:
Added crosscompile linux -> win32
--- libgd.a DELETED ---
Index: Makefile
===================================================================
RCS file: /cvsroot/galaxyng/NG/lib/Makefile,v
retrieving revision 1.9.2.1
retrieving revision 1.9.2.2
diff -C2 -d -r1.9.2.1 -r1.9.2.2
*** Makefile 23 Jun 2007 21:05:58 -0000 1.9.2.1
--- Makefile 4 Jul 2007 23:13:12 -0000 1.9.2.2
***************
*** 11,15 ****
--- 11,20 ----
CFLAGS = -Wall -pedantic -I../include $(ADDTL_CFLAGS)
+ # For a cross compile.
+ MINGW_CC=/usr/local/bin/i386-mingw32-gcc
+ MINGW_AR=/usr/local/bin/i386-mingw32-ar
+
CC = gcc
+ AR = ar
SOURCES=strutl.c logging.c list.c globals.c mail.c util.c loadNGConfig.c \
***************
*** 21,29 ****
libgalaxyng.a: $(OBJECTS)
! ar cr libgalaxyng.a $(OBJECTS)
clean:
rm -f libgalaxyng.a $(OBJECTS) *~ $(DEPENDENCIES)
# Make a copy of the master configuration
# file.
--- 26,37 ----
libgalaxyng.a: $(OBJECTS)
! $(AR) cr libgalaxyng.a $(OBJECTS)
clean:
rm -f libgalaxyng.a $(OBJECTS) *~ $(DEPENDENCIES)
+ xcompile:
+ $(MAKE) -f Makefile CC=$(MINGW_CC) AR=$(MINGW_AR) libgalaxyng.a
+
# Make a copy of the master configuration
# file.
Index: mail.c
===================================================================
RCS file: /cvsroot/galaxyng/NG/lib/mail.c,v
retrieving revision 1.18.2.1
retrieving revision 1.18.2.2
diff -C2 -d -r1.18.2.1 -r1.18.2.2
*** mail.c 22 Jun 2007 22:28:38 -0000 1.18.2.1
--- mail.c 4 Jul 2007 23:13:13 -0000 1.18.2.2
***************
*** 138,141 ****
--- 138,142 ----
setHeader( envelope *e, int headerType, char *format, ... )
{
+ #if 0
int n;
***************
*** 211,214 ****
--- 212,216 ----
assert( 0 );
}
+ #endif
}
***************
*** 272,278 ****
eMail( game *aGame, envelope *e, char *fileName )
{
FILE *mailFile;
char template[128];
! int result;
char command[4096];
--- 274,282 ----
eMail( game *aGame, envelope *e, char *fileName )
{
+ int result = 0;
+ #if 0
FILE *mailFile;
char template[128];
!
char command[4096];
***************
*** 373,376 ****
--- 377,381 ----
result |= ssystem( "rm %s", template );
#endif
+ #endif
return result;
}
|