]>
Commit | Line | Data |
---|---|---|
1 | # Project: zlib_1_03 | |
2 | ||
3 | ||
4 | # Toolflags: | |
5 | CCflags = -c -depend !Depend -IC: -g -throwback -DRISCOS -fnah | |
6 | C++flags = -c -depend !Depend -IC: -throwback | |
7 | Linkflags = -aif -c++ -o $@ | |
8 | ObjAsmflags = -throwback -NoCache -depend !Depend | |
9 | CMHGflags = | |
10 | LibFileflags = -c -l -o $@ | |
11 | Squeezeflags = -o $@ | |
12 | ||
13 | ||
14 | # Final targets: | |
15 | @.zlib_lib: @.o.adler32 @.o.compress @.o.crc32 @.o.deflate @.o.gzio \ | |
16 | @.o.infblock @.o.infcodes @.o.inffast @.o.inflate @.o.inftrees @.o.infutil @.o.trees \ | |
17 | @.o.uncompress @.o.zutil | |
18 | LibFile $(LibFileflags) @.o.adler32 @.o.compress @.o.crc32 @.o.deflate \ | |
19 | @.o.gzio @.o.infblock @.o.infcodes @.o.inffast @.o.inflate @.o.inftrees @.o.infutil \ | |
20 | @.o.trees @.o.uncompress @.o.zutil | |
21 | @.test: @.tests.minigzip @.tests.example | |
22 | echo Please run "Test" in directory tests | |
23 | @.tests.minigzip: @.o.minigzip @.zlib_lib C:o.Stubs | |
24 | Link $(Linkflags) @.o.minigzip @.zlib_lib C:o.Stubs | |
25 | @.tests.example: @.o.example @.zlib_lib C:o.Stubs | |
26 | Link $(Linkflags) @.o.example @.zlib_lib C:o.Stubs | |
27 | ||
28 | ||
29 | # User-editable dependencies: | |
30 | .c.o: | |
31 | cc $(ccflags) -o $@ $< | |
32 | ||
33 | # Static dependencies: | |
34 | @.o.example: @.tests.c.example | |
35 | cc $(ccflags) -o @.o.example @.tests.c.example | |
36 | @.o.minigzip: @.tests.c.minigzip | |
37 | cc $(ccflags) -o @.o.minigzip @.tests.c.minigzip | |
38 | ||
39 | ||
40 | # Dynamic dependencies: | |
41 | o.minigzip: tests.c.minigzip | |
42 | o.minigzip: h.zlib | |
43 | o.minigzip: h.zconf | |
44 | o.example: tests.c.example | |
45 | o.example: h.zlib | |
46 | o.example: h.zconf |