[Mew-dist 14733] Re: borland C
Kazu Yamamoto ( 山本和彦 )
kazu at example.com
2000年 10月 24日 (火) 14:36:19 JST
From: Kazu Yamamoto (山本和彦) <kazu at example.com>
Subject: [Mew-dist 14732] Re: borland C
> だめだぁ。zlib とのリンクのやり方が分りません。これ以上僕がやっても時
> 間の無駄なので、誰かお願いします。
>
> - Borland C 5.5 を使う
> - zlib を static でも DLL でもいいからリンクする
> # どのコンパイル済パッケージを使えばよいのだろう
>
> できた人は、やり方を具体的に教えて下さい。
Borland C 5.5 on Windows 2000 で zlib 以外はうまく行く Makefile と
config.h を付けておきます。
--かず
-------------- next part --------------
# Generated automatically from Makefile.in by configure.
###
### Makefile
###
### Author: Kazu Yamamoto <Kazu at example.com>
### Created: Jul 7, 2000
### Revised:
###
### make
### make install
###
prefix = /usr/local
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
CC = bcc32
CFLAGS =
COFLAG = -e$@
LIBS = -lz
INSTALL = copy
RM = del
MKDIR = md
EXEEXT=
OBJEXT=.obj
SRC1 = mewencode.c utils.c
OBJ1 = mewencode$(OBJEXT) utils$(OBJEXT)
PRG1 = mewencode$(EXEEXT)
SRC2 = mewls.c utils.c pattern.c
OBJ2 = mewls$(OBJEXT) utils$(OBJEXT) pattern$(OBJEXT)
PRG2 = mewls$(EXEEXT)
DO1 = utils$(OBJEXT)
SR2 = pattern.c
DO2 = pat$(OBJEXT)
DBG = pattern
CNF = config.h config.status config.cache config.log
MK = Makefile
all: $(PRG1) $(PRG2)
$(PRG1) : $(OBJ1)
$(CC) $(COFLAG) $(OBJ1) $(LIBS)
$(PRG2): $(OBJ2)
$(CC) $(COFLAG) $(CFLAGS) $(OBJ2)
$(DO2): $(SR2)
$(CC) -DDEBUG -c $(CFLAG) -o $(DO2) $(SR2)
$(DBG): $(DO1) $(DO2)
$(CC) $(CFLAGS) $(COFLAG) $(DO1) $(DO2)
clean:
$(RM) $(OBJ1) $(PRG1) $(OBJ2) $(PRG2) $(DBG) $(DO2)
distclean: clean
$(RM) $(CNF) $(MK)
install: $(PRG1) $(PRG2)
$(INSTALL) $(PRG1) $(bindir)
$(INSTALL) $(PRG2) $(bindir)
-------------- next part --------------
/* config.h. Generated automatically by configure. */
/* config.h.in. Generated automatically from configure.in by autoheader. */
#ifndef __CONFIG_H__
#define __CONFIG_H__
/* Define to empty if the keyword does not work. */
/* #undef const */
/* Define if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1
/* Define if you have the <dirent.h> header file. */
#define HAVE_DIRENT_H 1
/* Define if you have the <ndir.h> header file. */
/* #undef HAVE_NDIR_H */
/* Define if you have the <sys/dir.h> header file. */
/* #undef HAVE_SYS_DIR_H */
/* Define if you have the <sys/ndir.h> header file. */
/* #undef HAVE_SYS_NDIR_H */
/* Define if you have the <unistd.h> header file. */
/* #define HAVE_UNISTD_H 1 */
/* Define if you have the <getopt.h> header file. */
/* #define HAVE_PWD_H 1 */
/* Define if you have the <io.h> header file. */
#define HAVE_IO_H 1
/* Define if you have the strncasecmp function. */
/* #define HAVE_STRNCASECMP 1 */
/* Define if you have the strnicmp function. */
#define HAVE_STRNICMP 1
/* Define if you have the fork function. */
/* #define HAVE_FORK 1 */
/* Define if you have the vfork function. */
/* #define HAVE_VFORK 1 */
/* Define if you have the getpwuid function. */
/* #define HAVE_GETPWUID 1 */
/* Define if you have the usleep function. */
/* #define HAVE_USLEEP 1 */
/* Define if you have the Sleep function. */
#define HAVE_SLEEP 1
/* Define if you have the setmode function. */
#define HAVE_SETMODE 1
/* Define if you have the _setmode function. */
/* #undef HAVE__SETMODE */
/* Define if you have the chdir function. */
#define HAVE_CHDIR 1
/* Define if you have the _chdir2 function. */
/* #undef HAVE__CHDIR2 */
/* Define useconds_t as int if you don't have useconds_t */
#define useconds_t int
/* Define if you have the z library (-lz). */
#define HAVE_LIBZ 1
#endif /* !__CONFIG_H__ */
Mew-dist メーリングリストの案内