]>
Commit | Line | Data |
---|---|---|
f6bcfd97 BP |
1 | #!/binb/wmake.exe |
2 | # | |
3 | # File: makefile.wat | |
4 | # Author: Julian Smart | |
5 | # Created: 1998 | |
ddea7eb6 | 6 | # Changelist: 2003-02-25 - Juergen Ulbts - update from wxWindows 2.5.x/HEAD branch |
f6bcfd97 BP |
7 | # |
8 | # Makefile : Builds JPEG library for Watcom C++, WIN32 | |
dc1efb1d | 9 | |
f6bcfd97 BP |
10 | WXDIR = ..\.. |
11 | EXTRACPPFLAGS=-i=..\zlib | |
dc1efb1d | 12 | |
f6bcfd97 | 13 | !include $(WXDIR)\src\makewat.env |
dc1efb1d | 14 | |
f6bcfd97 | 15 | WXLIB = $(WXDIR)\lib |
dc1efb1d | 16 | |
a0499e2f | 17 | LIBTARGET = $(WXLIB)\jpeg$(WATCOM_SUFFIX).lib |
dc1efb1d | 18 | |
dc1efb1d | 19 | # library object files common to compression and decompression |
a0499e2f | 20 | COMOBJECTS = & |
ddea7eb6 CE |
21 | $(OUTPUTDIR)\jcomapi.obj & |
22 | $(OUTPUTDIR)\jutils.obj & | |
23 | $(OUTPUTDIR)\jerror.obj & | |
24 | $(OUTPUTDIR)\jmemmgr.obj & | |
25 | $(OUTPUTDIR)\jmemnobs.obj | |
a0499e2f | 26 | |
dc1efb1d | 27 | # compression library object files |
a0499e2f | 28 | CLIBOBJECTS = & |
ddea7eb6 CE |
29 | $(OUTPUTDIR)\jcapimin.obj & |
30 | $(OUTPUTDIR)\jcapistd.obj & | |
31 | $(OUTPUTDIR)\jctrans.obj & | |
32 | $(OUTPUTDIR)\jcparam.obj & | |
33 | $(OUTPUTDIR)\jdatadst.obj & | |
34 | $(OUTPUTDIR)\jcinit.obj & | |
35 | $(OUTPUTDIR)\jcmaster.obj & | |
36 | $(OUTPUTDIR)\jcmarker.obj & | |
37 | $(OUTPUTDIR)\jcmainct.obj & | |
38 | $(OUTPUTDIR)\jcprepct.obj & | |
39 | $(OUTPUTDIR)\jccoefct.obj & | |
40 | $(OUTPUTDIR)\jccolor.obj & | |
41 | $(OUTPUTDIR)\jcsample.obj & | |
42 | $(OUTPUTDIR)\jchuff.obj & | |
43 | $(OUTPUTDIR)\jcphuff.obj & | |
44 | $(OUTPUTDIR)\jcdctmgr.obj & | |
45 | $(OUTPUTDIR)\jfdctfst.obj & | |
46 | $(OUTPUTDIR)\jfdctflt.obj & | |
47 | $(OUTPUTDIR)\jfdctint.obj | |
a0499e2f | 48 | |
dc1efb1d | 49 | # decompression library object files |
a0499e2f | 50 | DLIBOBJECTS = & |
ddea7eb6 CE |
51 | $(OUTPUTDIR)\jdapimin.obj & |
52 | $(OUTPUTDIR)\jdapistd.obj & | |
53 | $(OUTPUTDIR)\jdtrans.obj & | |
54 | $(OUTPUTDIR)\jdatasrc.obj & | |
55 | $(OUTPUTDIR)\jdmaster.obj & | |
56 | $(OUTPUTDIR)\jdinput.obj & | |
57 | $(OUTPUTDIR)\jdmarker.obj & | |
58 | $(OUTPUTDIR)\jdhuff.obj & | |
59 | $(OUTPUTDIR)\jdphuff.obj & | |
60 | $(OUTPUTDIR)\jdmainct.obj & | |
61 | $(OUTPUTDIR)\jdcoefct.obj & | |
62 | $(OUTPUTDIR)\jdpostct.obj & | |
63 | $(OUTPUTDIR)\jddctmgr.obj & | |
64 | $(OUTPUTDIR)\jidctfst.obj & | |
65 | $(OUTPUTDIR)\jidctflt.obj & | |
66 | $(OUTPUTDIR)\jidctint.obj & | |
67 | $(OUTPUTDIR)\jidctred.obj & | |
68 | $(OUTPUTDIR)\jdsample.obj & | |
69 | $(OUTPUTDIR)\jdcolor.obj & | |
70 | $(OUTPUTDIR)\jquant1.obj & | |
71 | $(OUTPUTDIR)\jquant2.obj & | |
72 | $(OUTPUTDIR)\jdmerge.obj | |
a0499e2f | 73 | |
dc1efb1d | 74 | # These objectfiles are included in libjpeg.lib |
a0499e2f VZ |
75 | OBJECTS = $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS) |
76 | ||
77 | all: $(OUTPUTDIR) $(LIBTARGET) .SYMBOLIC | |
78 | ||
79 | $(OUTPUTDIR): | |
80 | @if not exist $^@ mkdir $^@ | |
dc1efb1d | 81 | |
ddea7eb6 | 82 | LBCFILE=$(OUTPUTDIR)\jpeg.lbc |
f6bcfd97 | 83 | $(LIBTARGET) : $(OBJECTS) |
a0499e2f VZ |
84 | %create $(LBCFILE) |
85 | @for %i in ( $(OBJECTS) ) do @%append $(LBCFILE) +%i | |
86 | wlib /q /b /c /n /p=512 $^@ @$(LBCFILE) | |
dc1efb1d | 87 | |
a0499e2f | 88 | clean: .SYMBOLIC |
ddea7eb6 | 89 | -erase $(OUTPUTDIR)\*.obj |
f6bcfd97 | 90 | -erase $(LIBTARGET) |
ddea7eb6 CE |
91 | -erase $(OUTPUTDIR)\*.pch |
92 | -erase $(OUTPUTDIR)\*.err | |
93 | -erase $(OUTPUTDIR)\*.lbc | |
dc1efb1d | 94 | |
f6bcfd97 | 95 | cleanall: clean |
dc1efb1d | 96 |