1
# -*- Mode: makefile; -*-
4
# Makefile for mewl.exe/mewencode.exe
5
# for Visual C++ / Borland C++ Compiler
9
# 1. If you want to use Cygwin, read ../00readme and follow its
11
# 2. You need pre-compiled and original zlib packages.
12
# Please download original tarball from
13
# http://www.gzip.org/zlib/,
15
# zconf.h, zlib.h, zlib.lib
16
# to suitable directory.
17
# 2. If you want to use Borland C++ Compiler, you need import library.
18
# > implib -a <filename_of_import_library> <filename_of_zlib.dll>
20
# **** Please modify ****
21
ZLIBINC = C:/usr/local/zlib
22
ZLIBLIB = C:/usr/local/zlib/zlib.lib
26
CFLAGS = -nologo -O2 -W3 -MT -Iw32 -I$(ZLIBINC)
31
#CFLAGS = -O2 -w -Iw32 -I$(ZLIBINC)
35
################################################################
37
TARGET = mewencode.exe mewl.exe
39
MEWENCODEOBJS = mewencode.obj utils.obj
40
MEWLOBJS = mewl.obj utils.obj pattern.obj dirent.obj
44
config.h : w32\config.h
45
copy w32\config.h config.h
47
mewencode.exe : $(MEWENCODEOBJS)
48
$(CC) $(CFLAGS) $(EXEFLAG)mewencode.exe $(MEWENCODEOBJS) $(ZLIBLIB)
49
mewl.exe : $(MEWLOBJS)
50
$(CC) $(CFLAGS) $(EXEFLAG)mewl.exe $(MEWLOBJS)
52
mewencode.obj : mewencode.c mew.h config.h
53
$(CC) $(CFLAGS) -c mewencode.c
54
mewl.obj : mewl.c mew.h config.h
55
$(CC) $(CFLAGS) -c mewl.c
56
utils.obj : utils.c mew.h config.h
57
$(CC) $(CFLAGS) -c utils.c
58
pattern.obj : pattern.c mew.h config.h
59
$(CC) $(CFLAGS) -c pattern.c
60
dirent.obj : w32\dirent.c w32\dirent.h w32\w32.h
61
$(CC) $(CFLAGS) -c w32\dirent.c