Debian Codegraph @

msdos/vs2008.mak

raw
1 # $MawkId: vs2008.mak,v 1.1 2014/09/14 22:30:35 tom Exp $
2 # Microsoft C makefile for mawk using Visual Studio 2008 and nmake.
3 #
4 ###############################################################################
5 # copyright 2014 Thomas E. Dickey
6 #
7 # This is a source file for mawk, an implementation of
8 # the AWK programming language.
9 #
10 # Mawk is distributed without warranty under the terms of
11 # the GNU General Public License, version 2, 1991.
12 ###############################################################################
13
14 !include <ntwin32.mak>
15
16 #========================================================================
17
18 CFLAGS = -I. -D_POSIX_ -DWINVER=0x501 -DLOCAL_REGEXP $(cflags)
19
20 .c.obj:
21 $(CC) $(CFLAGS) -c $<
22
23 OBJ1 = parse.obj array.obj bi_funct.obj bi_vars.obj cast.obj code.obj \
24 da.obj error.obj execute.obj fcall.obj
25
26 OBJ2 = field.obj files.obj fin.obj hash.obj jmp.obj init.obj \
27 kw.obj main.obj matherr.obj
28
29 OBJ3 = memory.obj print.obj re_cmpl.obj scan.obj scancode.obj split.obj \
30 zmalloc.obj version.obj regexp.obj dosexec.obj
31
32 MAWK_OBJ = $(OBJ1) $(OBJ2) $(OBJ3)
33
34 mawk.exe : $(MAWK_OBJ)
35 $(link) $(LDFLAGS) $(MAWK_OBJ) $(LIBS) -out:mawk.exe -map:mawk.map
36
37 $(MAWK_OBJ) : config.h
38
39 config.h : msdos/vs2008.h
40 copy msdos\vs2008.h config.h
41
42 dosexec.c : msdos/dosexec.c
43 copy msdos\dosexec.c dosexec.c
44
45 mawk_test : mawk.exe # test that we have a sane mawk
46 @echo you may have to run the test manually
47 cd test && mawktest.bat
48
49 fpe_test : mawk.exe # test FPEs are handled OK
50 @echo testing floating point exception handling
51 @echo you may have to run the test manually
52 cd test && fpe_test.bat
53
54 check : mawk_test fpe_test
55
56 ###################################################
57 # FIXME
58 # parse.c is provided
59 # so you don't need to make it.
60 #
61 # But if you do: here's how:
62 # To make it with byacc
63 # YACC=byacc
64 # parse.c : parse.y
65 # $(YACC) -d parse.y
66 # rename y_tab.h parse.h
67 # rename y_tab.c parse.c
68 ########################################
69
70 scancode.c : makescan.c scan.h
71 $(CC) $(CFLAGS) makescan.c
72 $(link) $(LDFLAGS) makescan.obj $(LIBS) -out:makescan.exe -map:makescan.map
73 makescan.exe > scancode.c
74 del makescan.exe
75
76 clean :
77 -del *.bak
78 -del *.exe
79 -del *.ilk
80 -del *.map
81 -del *.pdb
82 -del *.obj
83
84 distclean : clean
85 -del dosexec.c
86 -del scancode.c
87 -del config.h
88
89 # dependencies of .objs on .h
90 array.o : symtype.h split.h sizes.h mawk.h config.h types.h nstd.h bi_vars.h zmalloc.h memory.h field.h
91 bi_vars.o : symtype.h sizes.h mawk.h config.h types.h init.h nstd.h bi_vars.h zmalloc.h memory.h field.h
92 cast.o : scancode.h parse.h symtype.h sizes.h mawk.h config.h types.h nstd.h repl.h zmalloc.h scan.h memory.h field.h
93 code.o : scancode.h parse.h symtype.h sizes.h mawk.h config.h types.h init.h nstd.h repl.h jmp.h zmalloc.h scan.h code.h memory.h field.h
94 da.o : symtype.h sizes.h mawk.h config.h types.h nstd.h repl.h zmalloc.h code.h bi_funct.h memory.h field.h
95 execute.o : symtype.h sizes.h mawk.h config.h fin.h types.h regexp.h nstd.h repl.h bi_vars.h zmalloc.h code.h bi_funct.h files.h memory.h field.h
96 fcall.o : symtype.h sizes.h mawk.h config.h types.h nstd.h zmalloc.h code.h memory.h
97 field.o : scancode.h parse.h symtype.h split.h sizes.h mawk.h config.h types.h init.h regexp.h nstd.h repl.h bi_vars.h zmalloc.h scan.h memory.h field.h
98 files.o : symtype.h sizes.h mawk.h config.h fin.h types.h init.h nstd.h zmalloc.h files.h memory.h
99 fin.o : scancode.h parse.h symtype.h sizes.h mawk.h config.h types.h fin.h nstd.h bi_vars.h zmalloc.h scan.h memory.h field.h
100 hash.o : symtype.h sizes.h mawk.h config.h types.h nstd.h bi_vars.h zmalloc.h memory.h
101 jmp.o : symtype.h sizes.h mawk.h config.h types.h init.h nstd.h jmp.h zmalloc.h code.h memory.h
102 kw.o : symtype.h parse.h sizes.h mawk.h config.h types.h init.h nstd.h
103 main.o : symtype.h sizes.h mawk.h config.h types.h init.h nstd.h bi_vars.h zmalloc.h code.h files.h memory.h
104 makescan.o : scancode.h nstd.h
105 matherr.o : symtype.h sizes.h mawk.h config.h types.h init.h nstd.h
106 memory.o : sizes.h mawk.h config.h types.h nstd.h zmalloc.h memory.h
107 parse.o : symtype.h sizes.h mawk.h config.h types.h nstd.h bi_vars.h jmp.h zmalloc.h code.h bi_funct.h files.h memory.h field.h
108 print.o : scancode.h symtype.h parse.h sizes.h mawk.h config.h types.h init.h nstd.h bi_vars.h zmalloc.h scan.h bi_funct.h files.h memory.h field.h
109 re_cmpl.o : scancode.h parse.h symtype.h sizes.h mawk.h config.h types.h regexp.h nstd.h repl.h zmalloc.h scan.h memory.h
110 regexp_system.o : regexp.h nstd.h
111 rexp.o : sizes.h config.h types.h regexp.h rexp.h nstd.h
112 rexp0.o : sizes.h config.h types.h rexp.h nstd.h
113 rexp1.o : sizes.h config.h types.h rexp.h nstd.h
114 rexp2.o : sizes.h config.h types.h rexp.h nstd.h
115 rexp3.o : sizes.h config.h types.h rexp.h nstd.h
116 rexp4.o : sizes.h mawk.h config.h types.h rexp.h nstd.h field.h
117 rexpdb.o : sizes.h config.h types.h rexp.h nstd.h
118 scan.o : scancode.h symtype.h parse.h sizes.h mawk.h config.h types.h fin.h init.h nstd.h repl.h zmalloc.h scan.h code.h files.h memory.h field.h
119 scancode.o : scancode.h
120 split.o : scancode.h parse.h symtype.h split.h sizes.h mawk.h config.h types.h regexp.h nstd.h repl.h bi_vars.h zmalloc.h scan.h bi_funct.h memory.h field.h
121 version.o : symtype.h sizes.h mawk.h config.h types.h init.h nstd.h patchlev.h
122 zmalloc.o : sizes.h mawk.h config.h types.h nstd.h zmalloc.h