]> git.saurik.com Git - wxWidgets.git/blame - src/jpeg/makefile.wat
fixed NotMSW flag handling in the common files
[wxWidgets.git] / src / jpeg / makefile.wat
CommitLineData
f6bcfd97
BP
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
dc1efb1d 8
f6bcfd97
BP
9WXDIR = ..\..
10EXTRACPPFLAGS=-i=..\zlib
dc1efb1d 11
f6bcfd97 12!include $(WXDIR)\src\makewat.env
dc1efb1d 13
f6bcfd97 14WXLIB = $(WXDIR)\lib
dc1efb1d 15
f6bcfd97 16LIBTARGET = $(WXLIB)\jpeg.lib
dc1efb1d 17
dc1efb1d
JS
18SYSDEPMEM= jmemnobs.obj
19
dc1efb1d
JS
20# source files: JPEG library proper
21LIBSOURCES= 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
30SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
31# source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
32APPSOURCES= 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
35SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)
36# files included by source files
37INCLUDES= 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
40DOCS= 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
43MKFILES= 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
48CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat &
49 jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas &
50 jconfig.vms
51CONFIGUREFILES= config.guess config.sub install-sh ltconfig ltmain.sh
52OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
53TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg &
54 testimgp.jpg
55DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) &
56 $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)
57# library object files common to compression and decompression
58COMOBJECTS= jcomapi.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM)
59# compression library object files
60CLIBOBJECTS= 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
65DLIBOBJECTS= 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
f6bcfd97 71OBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
dc1efb1d
JS
72# object files for sample applications (excluding library files)
73COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj &
74 rdswitch.obj cdjpeg.obj
75DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj &
76 rdcolmap.obj cdjpeg.obj
77TROBJECTS= jpegtran.obj rdswitch.obj cdjpeg.obj transupp.obj
f6bcfd97 78all: $(OBJECTS) $(LIBTARGET)
dc1efb1d 79
f6bcfd97
BP
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
dc1efb1d 84
f6bcfd97
BP
85clean: .SYMBOLIC
86 -erase *.obj
87 -erase $(LIBTARGET)
88 -erase *.pch
89 -erase *.err
90 -erase *.lbc
dc1efb1d 91
f6bcfd97 92cleanall: clean
dc1efb1d 93