~ubuntu-branches/ubuntu/edgy/mew-beta/edgy

« back to all changes in this revision

Viewing changes to bin/Makefile.w32

  • Committer: Bazaar Package Importer
  • Author(s): Tatsuya Kinoshita
  • Date: 2004-06-13 01:11:33 UTC
  • Revision ID: james.westby@ubuntu.com-20040613011133-yaef6kqhoimiq3lx
Tags: upstream-4.0.65
ImportĀ upstreamĀ versionĀ 4.0.65

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- Mode: makefile; -*-
 
2
 
 
3
#
 
4
# Makefile for mewl.exe/mewencode.exe
 
5
#                             for Visual C++ / Borland C++ Compiler
 
6
#
 
7
 
 
8
# Note:
 
9
# 1. If you want to use Cygwin, read ../00readme and follow its
 
10
#    instructionx.
 
11
# 2. You need pre-compiled and original zlib packages.
 
12
#    Please download original tarball from
 
13
#      http://www.gzip.org/zlib/,
 
14
#    and put
 
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>
 
19
 
 
20
# **** Please modify ****
 
21
ZLIBINC = C:/usr/local/zlib
 
22
ZLIBLIB = C:/usr/local/zlib/zlib.lib
 
23
 
 
24
# for Visual C++
 
25
CC      = cl
 
26
CFLAGS  = -nologo -O2 -W3 -MT -Iw32 -I$(ZLIBINC)
 
27
EXEFLAG = -Fe
 
28
 
 
29
# for Borland C++
 
30
#CC      = bcc32
 
31
#CFLAGS  = -O2 -w -Iw32 -I$(ZLIBINC)
 
32
#EXEFLAG = -e
 
33
 
 
34
 
 
35
################################################################
 
36
 
 
37
TARGET = mewencode.exe mewl.exe
 
38
 
 
39
MEWENCODEOBJS = mewencode.obj utils.obj
 
40
MEWLOBJS      = mewl.obj utils.obj pattern.obj dirent.obj
 
41
 
 
42
all : $(TARGET)
 
43
 
 
44
config.h : w32\config.h
 
45
        copy w32\config.h config.h
 
46
 
 
47
mewencode.exe : $(MEWENCODEOBJS)
 
48
        $(CC) $(CFLAGS) $(EXEFLAG)mewencode.exe $(MEWENCODEOBJS) $(ZLIBLIB)
 
49
mewl.exe : $(MEWLOBJS)
 
50
        $(CC) $(CFLAGS) $(EXEFLAG)mewl.exe $(MEWLOBJS)
 
51
 
 
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