7 # Makefile : Builds JPEG library for Watcom C++, WIN32
10 EXTRACPPFLAGS=-i=..\zlib
12 !include $(WXDIR)\src\makewat.env
16 LIBTARGET = $(WXLIB)\jpeg$(WATCOM_SUFFIX).lib
18 # library object files common to compression and decompression
20 $(OUTPUTDIR)jcomapi.obj &
21 $(OUTPUTDIR)jutils.obj &
22 $(OUTPUTDIR)jerror.obj &
23 $(OUTPUTDIR)jmemmgr.obj &
24 $(OUTPUTDIR)jmemnobs.obj
26 # compression library object files
28 $(OUTPUTDIR)jcapimin.obj &
29 $(OUTPUTDIR)jcapistd.obj &
30 $(OUTPUTDIR)jctrans.obj &
31 $(OUTPUTDIR)jcparam.obj &
32 $(OUTPUTDIR)jdatadst.obj &
33 $(OUTPUTDIR)jcinit.obj &
34 $(OUTPUTDIR)jcmaster.obj &
35 $(OUTPUTDIR)jcmarker.obj &
36 $(OUTPUTDIR)jcmainct.obj &
37 $(OUTPUTDIR)jcprepct.obj &
38 $(OUTPUTDIR)jccoefct.obj &
39 $(OUTPUTDIR)jccolor.obj &
40 $(OUTPUTDIR)jcsample.obj &
41 $(OUTPUTDIR)jchuff.obj &
42 $(OUTPUTDIR)jcphuff.obj &
43 $(OUTPUTDIR)jcdctmgr.obj &
44 $(OUTPUTDIR)jfdctfst.obj &
45 $(OUTPUTDIR)jfdctflt.obj &
46 $(OUTPUTDIR)jfdctint.obj
48 # decompression library object files
50 $(OUTPUTDIR)jdapimin.obj &
51 $(OUTPUTDIR)jdapistd.obj &
52 $(OUTPUTDIR)jdtrans.obj &
53 $(OUTPUTDIR)jdatasrc.obj &
54 $(OUTPUTDIR)jdmaster.obj &
55 $(OUTPUTDIR)jdinput.obj &
56 $(OUTPUTDIR)jdmarker.obj &
57 $(OUTPUTDIR)jdhuff.obj &
58 $(OUTPUTDIR)jdphuff.obj &
59 $(OUTPUTDIR)jdmainct.obj &
60 $(OUTPUTDIR)jdcoefct.obj &
61 $(OUTPUTDIR)jdpostct.obj &
62 $(OUTPUTDIR)jddctmgr.obj &
63 $(OUTPUTDIR)jidctfst.obj &
64 $(OUTPUTDIR)jidctflt.obj &
65 $(OUTPUTDIR)jidctint.obj &
66 $(OUTPUTDIR)jidctred.obj &
67 $(OUTPUTDIR)jdsample.obj &
68 $(OUTPUTDIR)jdcolor.obj &
69 $(OUTPUTDIR)jquant1.obj &
70 $(OUTPUTDIR)jquant2.obj &
71 $(OUTPUTDIR)jdmerge.obj
73 # These objectfiles are included in libjpeg.lib
74 OBJECTS = $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
76 all: $(OUTPUTDIR) $(LIBTARGET) .SYMBOLIC
79 @if not exist $^@ mkdir $^@
81 LBCFILE=$(OUTPUTDIR)jpeg.lbc
82 $(LIBTARGET) : $(OBJECTS)
84 @for %i in ( $(OBJECTS) ) do @%append $(LBCFILE) +%i
85 wlib /q /b /c /n /p=512 $^@ @$(LBCFILE)
88 -erase $(OUTPUTDIR)*.obj
90 -erase $(OUTPUTDIR)*.pch
91 -erase $(OUTPUTDIR)*.err
92 -erase $(OUTPUTDIR)*.lbc