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