4e8f410d2f8a1df6fc645dfc00613dcb5afa7055
[retroray] / libs / imago / Makefile
1 !ifdef __UNIX__
2 libpng = libpng/png.obj libpng/pngerror.obj libpng/pngget.obj libpng/pngmem.obj &
3         libpng/pngpread.obj libpng/pngread.obj libpng/pngrio.obj libpng/pngrtran.obj &
4         libpng/pngrutil.obj libpng/pngset.obj libpng/pngtrans.obj libpng/pngwio.obj &
5         libpng/pngwrite.obj libpng/pngwtran.obj libpng/pngwutil.obj
6 zlib = zlib/adler32.obj zlib/compress.obj zlib/crc32.obj zlib/deflate.obj &
7         zlib/gzio.obj zlib/infback.obj zlib/inffast.obj zlib/inflate.obj &
8         zlib/inftrees.obj zlib/trees.obj zlib/uncompr.obj zlib/zutil.obj
9 jpeglib = jpeglib/jcapimin.obj jpeglib/jcapistd.obj jpeglib/jccoefct.obj &
10         jpeglib/jccolor.obj jpeglib/jcdctmgr.obj jpeglib/jchuff.obj jpeglib/jcinit.obj &
11         jpeglib/jcmainct.obj jpeglib/jcmarker.obj jpeglib/jcmaster.obj jpeglib/jcomapi.obj &
12         jpeglib/jcparam.obj jpeglib/jcphuff.obj jpeglib/jcprepct.obj jpeglib/jcsample.obj &
13         jpeglib/jctrans.obj jpeglib/jdapimin.obj jpeglib/jdapistd.obj jpeglib/jdatadst.obj &
14         jpeglib/jdatasrc.obj jpeglib/jdcoefct.obj jpeglib/jdcolor.obj jpeglib/jddctmgr.obj &
15         jpeglib/jdhuff.obj jpeglib/jdinput.obj jpeglib/jdmainct.obj jpeglib/jdmarker.obj &
16         jpeglib/jdmaster.obj jpeglib/jdmerge.obj jpeglib/jdphuff.obj jpeglib/jdpostct.obj &
17         jpeglib/jdsample.obj jpeglib/jdtrans.obj jpeglib/jerror.obj jpeglib/jfdctflt.obj &
18         jpeglib/jfdctfst.obj jpeglib/jfdctint.obj jpeglib/jidctflt.obj jpeglib/jidctfst.obj &
19         jpeglib/jidctint.obj jpeglib/jidctred.obj jpeglib/jmemmgr.obj jpeglib/jmemnobs.obj &
20         jpeglib/jquant1.obj jpeglib/jquant2.obj jpeglib/jutils.obj
21 obj = src/conv.obj src/filejpeg.obj src/filepng.obj src/fileppm.obj src/filergbe.obj &
22         src/filetga.obj src/ftmodule.obj src/imago2.obj src/modules.obj &
23         $(libpng) $(zlib) $(jpeglib)
24
25 alib = ../../imago.lib
26 !else
27 libpng = libpng\png.obj libpng\pngerror.obj libpng\pngget.obj libpng\pngmem.obj &
28         libpng\pngpread.obj libpng\pngread.obj libpng\pngrio.obj libpng\pngrtran.obj &
29         libpng\pngrutil.obj libpng\pngset.obj libpng\pngtrans.obj libpng\pngwio.obj &
30         libpng\pngwrite.obj libpng\pngwtran.obj libpng\pngwutil.obj
31 zlib = zlib\adler32.obj zlib\compress.obj zlib\crc32.obj zlib\deflate.obj &
32         zlib\gzio.obj zlib\infback.obj zlib\inffast.obj zlib\inflate.obj &
33         zlib\inftrees.obj zlib\trees.obj zlib\uncompr.obj zlib\zutil.obj
34 jpeglib = jpeglib\jcapimin.obj jpeglib\jcapistd.obj jpeglib\jccoefct.obj &
35         jpeglib\jccolor.obj jpeglib\jcdctmgr.obj jpeglib\jchuff.obj jpeglib\jcinit.obj &
36         jpeglib\jcmainct.obj jpeglib\jcmarker.obj jpeglib\jcmaster.obj jpeglib\jcomapi.obj &
37         jpeglib\jcparam.obj jpeglib\jcphuff.obj jpeglib\jcprepct.obj jpeglib\jcsample.obj &
38         jpeglib\jctrans.obj jpeglib\jdapimin.obj jpeglib\jdapistd.obj jpeglib\jdatadst.obj &
39         jpeglib\jdatasrc.obj jpeglib\jdcoefct.obj jpeglib\jdcolor.obj jpeglib\jddctmgr.obj &
40         jpeglib\jdhuff.obj jpeglib\jdinput.obj jpeglib\jdmainct.obj jpeglib\jdmarker.obj &
41         jpeglib\jdmaster.obj jpeglib\jdmerge.obj jpeglib\jdphuff.obj jpeglib\jdpostct.obj &
42         jpeglib\jdsample.obj jpeglib\jdtrans.obj jpeglib\jerror.obj jpeglib\jfdctflt.obj &
43         jpeglib\jfdctfst.obj jpeglib\jfdctint.obj jpeglib\jidctflt.obj jpeglib\jidctfst.obj &
44         jpeglib\jidctint.obj jpeglib\jidctred.obj jpeglib\jmemmgr.obj jpeglib\jmemnobs.obj &
45         jpeglib\jquant1.obj jpeglib\jquant2.obj jpeglib\jutils.obj
46 obj = src\conv.obj src\filejpeg.obj src\filepng.obj src\fileppm.obj src\filergbe.obj &
47         src\filetga.obj src\ftmodule.obj src\imago2.obj src\modules.obj &
48         $(libpng) $(zlib) $(jpeglib)
49
50 alib = ..\..\imago.lib
51 !endif
52
53 #opt = -5 -fp5 -od
54 opt = -5 -fp5 -otexan
55 dbg = -d1
56 def = -DPNG_NO_SNPRINTF
57
58 CC = wcc386
59 CFLAGS = $(dbg) $(opt) $(def) -zq -bt=dos -Ilibpng -Izlib -Ijpeglib
60
61 $(alib): $(obj)
62         %write objects.lbc $(obj)
63         wlib -b -n $@ @objects
64
65 .c: src;libpng;jpeglib;zlib
66
67 .c.obj: .autodepend
68         %write cflags.occ $(CFLAGS)
69         $(CC) -fo=$@ @cflags.occ $[*
70
71 !ifdef __UNIX__
72 clean: .symbolic
73         rm -f $(obj)
74         rm -f $(alib)
75 !else
76 clean: .symbolic
77         del src\*.obj
78         del zlib\*.obj
79         del libpng\*.obj
80         del jpeglib\*.obj
81         del objects.lbc
82         del cflags.occ
83         del $(alib)
84 !endif