Debian Codegraph @

JPEG/jpeg/makefile.v32

raw
1 # Makefile for Independent JPEG Group's software
2
3 # This makefile is suitable for Visual C++/nmake on Win32.
4 # It has been tested with Visual C++ 5, but may work with earlier
5 # versions.
6
7 # Read installation instructions before saying "make" !!
8
9 # The name of your C compiler:
10 CC= cl -nologo
11
12 # You may need to adjust these cc options:
13 CFLAGS= -Od -MD
14 # -Od suppresses optimization (VC optimizer is buggy)
15 # -MD makes it use the MT-safe DLL version of the RTL
16 # Generally, we recommend defining any configuration symbols in jconfig.h,
17 # NOT via -D switches here.
18
19 # Link-time cc options:
20 LDFLAGS= -nologo
21
22 # Put here the object file name for the correct system-dependent memory
23 # manager file. For DOS, we recommend jmemdos.c and jmemdosa.asm.
24 # If you change this, you'll need to modify the linker response file
25 # name list, below, by hand!
26 SYSDEPMEM= jmemnobs.obj
27
28 # End of configurable options.
29
30
31 # source files: JPEG library proper
32 LIBSOURCES= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c jcmainct.c \
33 jcmarker.c jcmaster.c jcomapi.c jcparam.c jcprepct.c jcsample.c \
34 jdapi.c jdatasrc.c jdatadst.c jdcoefct.c jdcolor.c jddctmgr.c \
35 jdhuff.c jdmainct.c jdmarker.c jdmaster.c jdpostct.c jdsample.c \
36 jerror.c jutils.c jfdctfst.c jfdctflt.c jfdctint.c jidctfst.c \
37 jidctflt.c jidctint.c jidctred.c jquant1.c jquant2.c jdmerge.c \
38 jmemmgr.c jmemansi.c jmemname.c jmemnobs.c jmemdos.c
39 # source files: cjpeg/djpeg applications, also rdjpgcom/wrjpgcom
40 APPSOURCES= cjpeg.c djpeg.c rdcolmap.c rdppm.c wrppm.c rdgif.c wrgif.c \
41 rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c rdjpgcom.c \
42 wrjpgcom.c
43 SOURCES= $(LIBSOURCES) $(APPSOURCES)
44 # files included by source files
45 INCLUDES= jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h jpegint.h \
46 jpeglib.h jversion.h cdjpeg.h cderror.h
47 # documentation, test, and support files
48 DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 rdjpgcom.1 wrjpgcom.1 \
49 example.c libjpeg.doc structure.doc coderules.doc filelist.doc \
50 change.log
51 MKFILES= configure makefile.auto makefile.ansi makefile.unix makefile.manx \
52 makefile.sas makcjpeg.st makdjpeg.st makljpeg.st makefile.bcc \
53 makefile.mc6 makefile.dj makefile.mms makefile.vms makvms.opt
54 CONFIGFILES= jconfig.auto jconfig.manx jconfig.sas jconfig.st jconfig.bcc \
55 jconfig.mc6 jconfig.dj jconfig.vms
56 OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
57 TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg
58 DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
59 $(OTHERFILES) $(TESTFILES)
60 # library object files common to compression and decompression
61 COMOBJECTS= jcomapi.obj jutils.obj cdjpeg.obj jerror.obj jmemmgr.obj rdswitch.obj $(SYSDEPMEM)
62 # compression library object files
63 CLIBOBJECTS= jcapimin.obj jcapistd.obj jcparam.obj jdatadst.obj jcmaster.obj jcmarker.obj \
64 jcmainct.obj jcprepct.obj jccoefct.obj jccolor.obj jcsample.obj \
65 jchuff.obj jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj jcinit.obj jcphuff.obj
66 # decompression library object files
67 DLIBOBJECTS= jdapimin.obj jdapistd.obj jdatasrc.obj jdmaster.obj jdmarker.obj jdmainct.obj \
68 jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj jidctflt.obj \
69 jidctint.obj jidctred.obj jdhuff.obj jdsample.obj jdcolor.obj \
70 jquant1.obj jquant2.obj jdmerge.obj jdinput.obj jdphuff.obj
71 # These objectfiles are included in libjpeg.lib
72 LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
73 # object files for cjpeg and djpeg applications (excluding library files)
74 COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj
75 DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj \
76 rdcolmap.obj
77
78 all: libjpeg.lib cjpeg.exe djpeg.exe rdjpgcom.exe wrjpgcom.exe
79
80 libjpeg.lib: $(LIBOBJECTS)
81 -cmd /C del libjpeg.lib
82 lib -out:libjpeg.lib $(LIBOBJECTS)
83
84 cjpeg.exe: $(COBJECTS) libjpeg.lib
85 $(CC) $(LDFLAGS) -Fecjpeg.exe $(COBJECTS) libjpeg.lib
86
87 djpeg.exe: $(DOBJECTS) libjpeg.lib
88 $(CC) $(LDFLAGS) -Fedjpeg.exe $(DOBJECTS) libjpeg.lib
89
90 rdjpgcom.exe: rdjpgcom.c
91 $(CC) -O rdjpgcom.c
92
93 # wrjpgcom needs large model so it can malloc a 64K chunk
94 wrjpgcom.exe: wrjpgcom.c
95 $(CC) -O wrjpgcom.c
96
97 .c.obj:
98 $(CC) $(CFLAGS) -c $<
99
100 jconfig.h: jconfig.doc
101 echo You must prepare a system-dependent jconfig.h file.
102 echo Please read the installation directions in install.doc.
103 exit 1
104
105 clean:
106 -cmd /C del *.obj
107 -cmd /C del libjpeg.lib
108 -cmd /C del cjpeg.exe
109 -cmd /C del djpeg.exe
110 -cmd /C del rdjpgcom.exe
111 -cmd /C del wrjpgcom.exe
112 -cmd /C del testout.*
113
114 test: cjpeg.exe djpeg.exe
115 -del testout.*
116 djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
117 cjpeg -dct int -outfile testout.jpg testimg.ppm
118 fc /b testimg.ppm testout.ppm
119 fc /b testimg.jpg testout.jpg
120
121
122 jcapi.obj : jcapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
123 jccoefct.obj : jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
124 jccolor.obj : jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
125 jcdctmgr.obj : jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
126 jchuff.obj : jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
127 jcmainct.obj : jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
128 jcmarker.obj : jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
129 jcmaster.obj : jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
130 jcomapi.obj : jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
131 jcparam.obj : jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
132 jcprepct.obj : jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
133 jcsample.obj : jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
134 jdapi.obj : jdapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
135 jdatasrc.obj : jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
136 jdatadst.obj : jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
137 jdcoefct.obj : jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
138 jdcolor.obj : jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
139 jddctmgr.obj : jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
140 jdhuff.obj : jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
141 jdmainct.obj : jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
142 jdmarker.obj : jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
143 jdmaster.obj : jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
144 jdpostct.obj : jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
145 jdsample.obj : jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
146 jerror.obj : jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
147 jutils.obj : jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
148 jfdctfst.obj : jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
149 jfdctflt.obj : jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
150 jfdctint.obj : jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
151 jidctfst.obj : jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
152 jidctflt.obj : jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
153 jidctint.obj : jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
154 jidctred.obj : jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
155 jquant1.obj : jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
156 jquant2.obj : jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
157 jdmerge.obj : jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
158 jmemmgr.obj : jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
159 jmemansi.obj : jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
160 jmemname.obj : jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
161 jmemnobs.obj : jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
162 jmemdos.obj : jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
163 cjpeg.obj : cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
164 djpeg.obj : djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
165 rdcolmap.obj : rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
166 rdppm.obj : rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
167 wrppm.obj : wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
168 rdgif.obj : rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
169 wrgif.obj : wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
170 rdtarga.obj : rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
171 wrtarga.obj : wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
172 rdbmp.obj : rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
173 wrbmp.obj : wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
174 rdrle.obj : rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
175 wrrle.obj : wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
176 rdjpgcom.obj : rdjpgcom.c jinclude.h jconfig.h
177 wrjpgcom.obj : wrjpgcom.c jinclude.h jconfig.h
178 jmemdosa.obj : jmemdosa.asm
179 tasm /mx jmemdosa.asm