]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/jpeg/makefile.wat
try to create smaller executables
[wxWidgets.git] / src / jpeg / makefile.wat
... / ...
CommitLineData
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
9WXDIR = ..\..
10EXTRACPPFLAGS=-i=..\zlib
11
12!include $(WXDIR)\src\makewat.env
13
14WXLIB = $(WXDIR)\lib
15
16LIBTARGET = $(WXLIB)\jpeg$(WATCOM_SUFFIX).lib
17
18# library object files common to compression and decompression
19COMOBJECTS = &
20 $(OUTPUTDIR)jcomapi.obj &
21 $(OUTPUTDIR)jutils.obj &
22 $(OUTPUTDIR)jerror.obj &
23 $(OUTPUTDIR)jmemmgr.obj &
24 $(OUTPUTDIR)jmemnobs.obj
25
26# compression library object files
27CLIBOBJECTS = &
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
47
48# decompression library object files
49DLIBOBJECTS = &
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
72
73# These objectfiles are included in libjpeg.lib
74OBJECTS = $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
75
76all: $(OUTPUTDIR) $(LIBTARGET) .SYMBOLIC
77
78$(OUTPUTDIR):
79 @if not exist $^@ mkdir $^@
80
81LBCFILE=$(OUTPUTDIR)jpeg.lbc
82$(LIBTARGET) : $(OBJECTS)
83 %create $(LBCFILE)
84 @for %i in ( $(OBJECTS) ) do @%append $(LBCFILE) +%i
85 wlib /q /b /c /n /p=512 $^@ @$(LBCFILE)
86
87clean: .SYMBOLIC
88 -erase $(OUTPUTDIR)*.obj
89 -erase $(LIBTARGET)
90 -erase $(OUTPUTDIR)*.pch
91 -erase $(OUTPUTDIR)*.err
92 -erase $(OUTPUTDIR)*.lbc
93
94cleanall: clean
95