1 # $Id: makefile.wnt 14098 2005-10-03 18:54:13Z jpf@u.washington.edu $
3 # ========================================================================
4 # Copyright 2006 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 libpico.lib and pico.exe
24 #includes symbol info for debugging
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)
36 LIBS= oldnames.lib kernel32.lib advapi32.lib ws2_32.lib user32.lib gdi32.lib shell32.lib comdlg32.lib \
37 libpico.lib osdep/libpicoosd.lib osdep/mswin.res \
38 ../c-client/utf8.obj ../pith/osdep/libpithosd.lib ../pith/charconv/libpithcc.lib
40 LIBARGS=/nologo /verbose
42 HFILES= ../include/system.h ../include/general.h \
43 ebind.h edef.h efunc.h estruct.h headers.h keydefs.h mode.h pico.h
45 OFILES= attach.obj basic.obj bind.obj browse.obj buffer.obj composer.obj \
46 display.obj file.obj fileio.obj line.obj pico.obj random.obj \
47 region.obj search.obj utf8stub.obj window.obj word.obj
49 all: blddate.exe pico.exe
52 $(CC) -c $(CFLAGS) "$(MAKEDIR)"\$*.c
56 libpico.lib: $(OFILES)
57 $(RM) libpico.lib || rem
58 $(LIBER) /out:libpico.lib $(OFILES)
60 blddate.exe: blddate.c
61 $(CC) $(CFLAGS) blddate.c
63 pico.exe: main.obj libpico.lib $(OFILES) mswinver.obj osdep/libpicoosd.lib ../pith/osdep/libpithosd.lib ../c-client/utf8.obj ../pith/charconv/libpithcc.lib osdep/mswin.res
65 $(CC) /c $(CFLAGS) bdate.c
66 link /subsystem:windows /entry:wWinMainCRTStartup /out:pico.exe $(LFLAGS) bdate.obj mswinver.obj main.obj $(LIBS)