gn  MIME бˤĤ (OS/2 )

emx Ȥä 32bit  gn ǤϡUnix ǤƱ mimekit( 
mimehead) Ѥإå encode/decode ǽȤʤޤ

Ǥ OS/2 gn  MIME Ѥˡ̾ˡ
ưۤʤˤĤƲ⤷ƹԤޤ docs.jp/mime 
椵ƹԤޤ

ޤȤơemx Ǥ gn ĶǤƤ뤳Ȥ
ꤷޤĤޤ emx/gcc ڤտ魯ġ뷲ʾܤ 
emx Υ󥹥ȡ륬ɤ򻲾ȤƤ, gnu make, gnu
patch 󥹥ȡ뤵ƤΤȤޤ

ޤ饤֥ΥƥȤԤˤϡsort, uniq,
grepɬפˤʤޤ emx Ʊʤ gnututil.zip 
ȤƼ뤳ȤǤȻפޤ


  >ʣmimekit1.6.tar.gz Ÿޤ

Τ Makefile ؤɬפޤꥸʥ 
Makefile ФѥåǸźդƤΤǡ 
patch ˿碌Ʋ


  >ʣmimekit  make Ǥä libmimekit.a  /usr/lib ʤɤ
  >      ֤ޤ

libmimekit.a emx λѤĶѿ LIBRARY_PATH ǻꤷ
ǥ쥯ȥ֤Ʋ

  >ʣconfigur ¹Ի
  >      OPTCFLAGS Ȥơ-DMIME 
  >      OPTLIBS   Ȥơ-lmimekit ꤷޤ

emx Ǥϥ饤֥λ꤬ Unix ȰۤʤޤUnix Ǥϥ饤֥
ե libXXXXX.a Ȥե̾󥯻˥
ץȤ -lXXXXX ꤷޤemx ξϥե
̾Τ (.a ä) Ȥޤä OPTLIBS ˻
ꤹΤϡ

    -llibmimekit

Ȥʤޤ


  >ʣmake
  >      make install
  >
  >ʾǡإåʬ MIME ѤǤ gn Ǥޤ

ͤǤ


  >ʣ.gnrc ˰ʲιԤɲäޤ
  >       MIME_HEAD	ON
  >       ˥塼˻ѡԻѤؤϡ
  >       .gnrc-NNTPSERVER Ѥޤ

ƱǤ


ʤ֤ޤǤ뤫̡פȤո⤢Ǥ礦
mimekit ƱƤѥեޥ¬ѤΥץ 
bench  OS/2 бˤޤѥåʸκǸźդƤ
ޤ
Υѥå mimekit1.1 ѤǤ1.6 ˤϤʤΤޤ

ʸ   (kiku@yamato.ibm.co.jp)

----------------------------------------------------------------------
*** orig/Makefile	Fri Dec 01 23:55:06 1995
--- Makefile	Fri Aug 16 15:49:34 1996
***************
*** 49,58 ****
  		codeconv.o JIS.o html.o file.o \
  		syslog.o
  
! ALL =		toMime fromMime enMime deMime test.out bench
  
! CC =		cc
! CFLAGS =	-O
  RM =		rm -f
  RANLIB =	`./mkranlib`
  TAR =		tar
--- 49,58 ----
  		codeconv.o JIS.o html.o file.o \
  		syslog.o
  
! ALL =		toMime.exe fromMime.exe enMime.exe deMime.exe test.out bench.exe
  
! CC =		gcc
! CFLAGS =	-O -DOS2
  RM =		rm -f
  RANLIB =	`./mkranlib`
  TAR =		tar
***************
*** 65,92 ****
  
  $(LIBMKIT):	Makefile $(OBJS)
  		$(RM) $(LIBMKIT)
! 		ar rc $(LIBMKIT) $(OBJS)
! 		$(RANLIB) $(LIBMKIT)
  
! enMime:		mmhencode.c $(LIBMKIT)
! 		$(CC) $(PROF) -o enMime -DENMIME mmhencode.c  $(LIBMKIT)
  
! deMime:		mmhencode.c $(LIBMKIT)
! 		$(CC) $(PROF) -o deMime -DDEMIME mmhencode.c  $(LIBMKIT)
  
! fromMime:	mmhencode.c $(LIBMKIT)
! 		$(CC) $(PROF) -o fromMime -DMIME2LOCAL mmhencode.c  $(LIBMKIT)
  
! toMime:		mmhencode.c $(LIBMKIT)
! 		$(CC) $(PROF) -o toMime -DLOCAL2MIME mmhencode.c  $(LIBMKIT)
  
! TEST =	./enMime<sample|./deMime|./enMime|./deMime|sort|uniq -c|grep -v '  2 '
! test.out:	Makefile sample fromMime toMime
! 		$(TEST)>test.out
! 		cat test.out
  
! bench:		bench.o $(LIBMKIT)
! 		$(CC) $(PROF) -o bench bench.o $(LIBMKIT)
  
  tar:		$(TARFILE)
  $(TARFILE):	$(FILES)
--- 65,92 ----
  
  $(LIBMKIT):	Makefile $(OBJS)
  		$(RM) $(LIBMKIT)
! 		ar rsc $(LIBMKIT) $(OBJS)
! #		$(RANLIB) $(LIBMKIT)
  
! enMime.exe:	mmhencode.c $(LIBMKIT)
! 		$(CC) $(PROF) -o enMime.exe -DENMIME mmhencode.c  $(LIBMKIT)
  
! deMime.exe:	mmhencode.c $(LIBMKIT)
! 		$(CC) $(PROF) -o deMime.exe -DDEMIME mmhencode.c  $(LIBMKIT)
  
! fromMime.exe:	mmhencode.c $(LIBMKIT)
! 		$(CC) $(PROF) -o fromMime.exe -DMIME2LOCAL mmhencode.c  $(LIBMKIT)
  
! toMime.exe:	mmhencode.c $(LIBMKIT)
! 		$(CC) $(PROF) -o toMime.exe -DLOCAL2MIME mmhencode.c  $(LIBMKIT)
  
! TEST =	enMime<sample|deMime|sort|uniq -c|grep -v 2 > test.out
! test.out:	Makefile sample fromMime.exe toMime.exe
! 		$(TEST)
! 		type test.out
  
! bench.exe:	bench.o $(LIBMKIT)
! 		$(CC) $(PROF) -o bench.exe bench.o $(LIBMKIT)
  
  tar:		$(TARFILE)
  $(TARFILE):	$(FILES)
***************
*** 93,107 ****
  		$(TAR) cfh $(TARFILE) $(FILES)
  files:;		ls -d $(FILES)
  
! Clean:;		$(RM) $(OBJS) $(LIBMKIT) toMime fromMime $(SHAREFILES)
! clean:;		$(RM) $(OBJS) $(LIBMKIT) toMime fromMime \
! 		enMime deMime bench.o test.out
! 
! install:	fromMime toMime $(LIBMKIT)
! 		install -o bin -g bin -m 755 fromMime $(INSTDIR)
! 		install -o bin -g bin -m 755 toMime $(INSTDIR)
! 		install -o root -g staff -m 644 $(LIBMKIT) $(INSTDIR)
! 		$(RANLIB) $(INSTDIR)/$(LIBMKIT)
  
  config.h:;	ln -s $(MMDIR)/config.h .
  codes.c:;	ln -s $(MMDIR)/metamail/codes.c .
--- 93,107 ----
  		$(TAR) cfh $(TARFILE) $(FILES)
  files:;		ls -d $(FILES)
  
! Clean:;		$(RM) $(OBJS) $(LIBMKIT) toMime.exe fromMime.exe $(SHAREFILES)
! clean:;		$(RM) $(OBJS) $(LIBMKIT) toMime.exe fromMime.exe \
! 		enMime.exe deMime.exe bench.o test.out
! 
! install:	fromMime.exe toMime.exe $(LIBMKIT)
! 		copy fromMime.exe $(INSTDIR)
! 		copy toMime.exe $(INSTDIR)
! 		copy $(LIBMKIT) $(INSTDIR)
! #		$(RANLIB) $(INSTDIR)/$(LIBMKIT)
  
  config.h:;	ln -s $(MMDIR)/config.h .
  codes.c:;	ln -s $(MMDIR)/metamail/codes.c .
*** orig/bench.c	Sat Oct 28 10:06:38 1995
--- bench.c	Fri Aug 16 15:44:10 1996
***************
*** 1,7 ****
--- 1,11 ----
  #include <stdio.h>
  int LOOPCOUNT = 1000;
  
+ #ifdef OS2
+ static char external[128] = "fromMime.exe";
+ #else
  static char external[128] = "fromMime";
+ #endif
  
  #define DUMMY	1
  #define LINKED	2
***************
*** 108,117 ****
--- 112,123 ----
  	if( (cpid = fork()) == 0 ){
  		close(to[1]);  close(0); dup(to[0]);  close(to[0]);
  		close(from[0]);close(1); dup(from[1]);close(from[1]);
+ #ifndef OS2
  		if( strncmp("exec ",command,5) != 0 ){
  			sprintf(commandx,"exec %s",command);
  			command = commandx;
  		}
+ #endif
  		system(command);
  		exit(0);
  	}else{


(C) kiku@yamato.ibm.co.jp (Akira Kikuchi)
	Aug.27,1996
Copyright (C) yamasita@omronsoft.co.jp
	May.30,1997
ޤ󡣤Ūʳλѡۤ¤ߤޤ
