]>
Commit | Line | Data |
---|---|---|
1 | #!/binb/wmake.exe | |
2 | # | |
3 | # File: makefile.wat | |
4 | # Author: Julian Smart | |
5 | # Created: 1998 | |
6 | # | |
7 | # Makefile : Builds JPEG library for Watcom C++, WIN32 | |
8 | ||
9 | WXDIR = ..\.. | |
10 | EXTRACPPFLAGS=-i=..\zlib | |
11 | ||
12 | !include $(WXDIR)\src\makewat.env | |
13 | ||
14 | WXLIB = $(WXDIR)\lib | |
15 | ||
16 | LIBTARGET = $(WXLIB)\jpeg.lib | |
17 | ||
18 | SYSDEPMEM= jmemnobs.obj | |
19 | ||
20 | # source files: JPEG library proper | |
21 | LIBSOURCES= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c & | |
22 | jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c & | |
23 | jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c & | |
24 | jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c & | |
25 | jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c & | |
26 | jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c & | |
27 | jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c & | |
28 | jquant2.c jutils.c jmemmgr.c | |
29 | # memmgr back ends: compile only one of these into a working library | |
30 | SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c | |
31 | # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom | |
32 | APPSOURCES= cjpeg.c djpeg.c jpegtran.c rdjpgcom.c wrjpgcom.c cdjpeg.c & | |
33 | rdcolmap.c rdswitch.c transupp.c rdppm.c wrppm.c rdgif.c wrgif.c & | |
34 | rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c | |
35 | SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES) | |
36 | # files included by source files | |
37 | INCLUDES= jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h & | |
38 | jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h | |
39 | # documentation, test, and support files | |
40 | DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 & | |
41 | wrjpgcom.1 wizard.doc example.c libjpeg.doc structure.doc & | |
42 | coderules.doc filelist.doc change.log | |
43 | MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc & | |
44 | makefile.mc6 makefile.dj makefile.wat makefile.vc makelib.ds & | |
45 | makeapps.ds makeproj.mac makcjpeg.st makdjpeg.st makljpeg.st & | |
46 | maktjpeg.st makefile.manx makefile.sas makefile.mms makefile.vms & | |
47 | makvms.opt | |
48 | CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat & | |
49 | jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas & | |
50 | jconfig.vms | |
51 | CONFIGUREFILES= config.guess config.sub install-sh ltconfig ltmain.sh | |
52 | OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm | |
53 | TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg & | |
54 | testimgp.jpg | |
55 | DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) & | |
56 | $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES) | |
57 | # library object files common to compression and decompression | |
58 | COMOBJECTS= jcomapi.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM) | |
59 | # compression library object files | |
60 | CLIBOBJECTS= jcapimin.obj jcapistd.obj jctrans.obj jcparam.obj jdatadst.obj & | |
61 | jcinit.obj jcmaster.obj jcmarker.obj jcmainct.obj jcprepct.obj & | |
62 | jccoefct.obj jccolor.obj jcsample.obj jchuff.obj jcphuff.obj & | |
63 | jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj | |
64 | # decompression library object files | |
65 | DLIBOBJECTS= jdapimin.obj jdapistd.obj jdtrans.obj jdatasrc.obj & | |
66 | jdmaster.obj jdinput.obj jdmarker.obj jdhuff.obj jdphuff.obj & | |
67 | jdmainct.obj jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj & | |
68 | jidctflt.obj jidctint.obj jidctred.obj jdsample.obj jdcolor.obj & | |
69 | jquant1.obj jquant2.obj jdmerge.obj | |
70 | # These objectfiles are included in libjpeg.lib | |
71 | OBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS) | |
72 | # object files for sample applications (excluding library files) | |
73 | COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj & | |
74 | rdswitch.obj cdjpeg.obj | |
75 | DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj & | |
76 | rdcolmap.obj cdjpeg.obj | |
77 | TROBJECTS= jpegtran.obj rdswitch.obj cdjpeg.obj transupp.obj | |
78 | all: $(OBJECTS) $(LIBTARGET) | |
79 | ||
80 | $(LIBTARGET) : $(OBJECTS) | |
81 | %create tmp.lbc | |
82 | @for %i in ( $(OBJECTS) ) do @%append tmp.lbc +%i | |
83 | wlib /b /c /n /p=512 $^@ @tmp.lbc | |
84 | ||
85 | clean: .SYMBOLIC | |
86 | -erase *.obj | |
87 | -erase $(LIBTARGET) | |
88 | -erase *.pch | |
89 | -erase *.err | |
90 | -erase *.lbc | |
91 | ||
92 | cleanall: clean | |
93 |