* new version 2.20.8.
[alpine.git] / alpine / makefile.wnt
blobdb2e4707897b78c8c04fd02ef414282abdda37c1
1 # $Id: makefile.wnt 14098 2005-10-03 18:54:13Z jpf@u.washington.edu $
3 # ========================================================================
4 # Copyright 2006-2007 University of Washington
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 #     http://www.apache.org/licenses/LICENSE-2.0
12 # ========================================================================
16 # Makefile for WIN NT version of the libalpine.lib and pine.exe
19 CC=cl
20 RM=del
21 CP=copy 
22 RC=rc
24 #includes symbol info for debugging 
25 CDEBUG= #-Zi -Od
26 LDEBUG= /DEBUG /DEBUGTYPE:CV
28 STDCFLAGS= -I..\include -I..\regex -nologo -MT -DWIN32 -DDOS -D_WINDOWS -DMSC_MALLOC
30 CFLAGS= $(CDEBUG) $(STDCFLAGS) $(NET) $(EXTRACFLAGS)
32 LFLAGS= $(LDEBUG) $(EXTRALDFLAGS)
34 RCFLAGS =
36 STDLIBS=oldnames.lib kernel32.lib advapi32.lib ws2_32.lib user32.lib gdi32.lib \
37         shell32.lib comdlg32.lib winmm.lib crypt32.lib
38 SPELLLIBS=
40 LIBER=lib
41 LIBARGS=/nologo /verbose
43 HFILES= ../include/system.h ../include/general.h \
44         addrbook.h adrbkcmd.h after.h alpine.h arg.h busy.h colorconf.h confscroll.h \
45         conftype.h context.h dispfilt.h flagmaint.h folder.h headers.h help.h imap.h \
46         init.h kblock.h keymenu.h ldapconf.h listsel.h mailcmd.h mailindx.h mailpart.h \
47         mailview.h newmail.h newuser.h pattern.h pipe.h print.h radio.h remote.h \
48         reply.h roleconf.h \
49         send.h setup.h signal.h status.h takeaddr.h talk.h titlebar.h
51 OFILES= addrbook.obj adrbkcmd.obj after.obj alpine.obj arg.obj busy.obj colorconf.obj \
52         confscroll.obj context.obj dispfilt.obj flagmaint.obj folder.obj help.obj \
53         imap.obj init.obj kblock.obj keymenu.obj ldapconf.obj listsel.obj mailcmd.obj \
54         mailindx.obj mailpart.obj mailview.obj newmail.obj \
55         newuser.obj pattern.obj pipe.obj \
56         print.obj radio.obj remote.obj reply.obj roleconf.obj \
57         send.obj setup.obj signal.obj status.obj takeaddr.obj titlebar.obj
59 OURLIBS= ../c-client/cclient.lib osdep/libalpineosd.lib osdep/mswin.res \
60         ../pith/osdep/libpithosd.lib ../pith/charconv/libpithcc.lib ../regex/libregex.lib ../pith/libpith.lib \
61         ../pico/osdep/libpicoosd.lib ../pico/libpico.lib
63 LIBS= $(STDLIBS) $(LDAPLIBS) $(SPELLLIBS) $(OURLIBS) $(EXTRALIBES)
65 all:    alpine.exe rpload.exe rpdump.exe
67 .c.obj:
68         $(CC) -c $(CFLAGS) "$(MAKEDIR)"\$*.c
70 $(OFILES):      $(HFILES)
72 libalpine.lib:  $(OFILES)
73                 $(RM) libalpine.lib || rem
74                 $(LIBER) /out:libalpine.lib $(OFILES)
76 rpload.exe: rpload.obj ..\c-client\cclient.lib
77         link /subsystem:console /out:rpload.exe $(LFLAGS) rpload.obj bdate.obj $(LIBS)
79 rpdump.exe: rpdump.obj ..\c-client\cclient.lib
80         link /subsystem:console /out:rpdump.exe $(LFLAGS) rpdump.obj bdate.obj $(LIBS)
82 alpine.exe: $(OFILES) $(OURLIBS)
83         ..\pico\blddate > bdate.c
84         $(CC) /c $(CFLAGS) bdate.c
85         link /subsystem:windows /entry:wWinMainCRTStartup /out:alpine.exe $(LFLAGS) bdate.obj $(OFILES) $(LIBS)
87 clean:
88         $(RM) *.lib
89         $(RM) *.obj