annotate src/mtest/makefile.os2 @ 0:ada5e610ab86

imap-2007e
author yuuji@gentei.org
date Mon, 14 Sep 2009 15:17:45 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
1 # ========================================================================
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
2 # Copyright 1988-2006 University of Washington
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
3 #
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
4 # Licensed under the Apache License, Version 2.0 (the "License");
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
5 # you may not use this file except in compliance with the License.
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
6 # You may obtain a copy of the License at
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
7 #
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
8 # http://www.apache.org/licenses/LICENSE-2.0
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
9 #
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
10 #
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
11 # ========================================================================
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
12
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
13
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
14 # Program: MTEST Makefile
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
15 #
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
16 # Author: Mark Crispin
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
17 # Networks and Distributed Computing
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
18 # Computing & Communications
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
19 # University of Washington
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
20 # Administration Building, AG-44
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
21 # Seattle, WA 98195
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
22 # Internet: MRC@CAC.Washington.EDU
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
23 #
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
24 # Date: 25 February 1996
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
25 # Last Edited: 30 August 2006
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
26
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
27 # Thanks to Nicholas Paul Sheppard who contributed the original version
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
28
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
29 CC = gcc
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
30 CFLAGS = -O2 -Zomf
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
31 LD = gcc
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
32 LDFLAGS = -s -Zomf -Zcrtdll
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
33
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
34 C = ..\c-client
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
35 CCLIENTLIB = $C\\c-client.lib
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
36 LIBS = $(CCLIENTLIB) -l socket
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
37
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
38 mtest.exe: $(CCLIENTLIB) mtest.obj
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
39 $(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
40
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
41 $(CCLIENTLIB):
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
42 @echo Make c-client first
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
43 false
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
44
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
45 mtest.obj: mtest.c $C\mail.h $C\smtp.h $C\misc.h $C\osdep.h
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
46 $(CC) $(CFLAGS) -I$C -o $@ -c $<
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
47
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
48 clean:
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
49 if exist *.obj del *.obj
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
50
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
51 # A monument to a hack of long ago and far away...
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
52 love:
ada5e610ab86 imap-2007e
yuuji@gentei.org
parents:
diff changeset
53 @echo not war?

yatex.org