| 1 | #/*
 | 
|---|
| 2 | # * Copyright (c) Chris Wohlgemuth 2002 
 | 
|---|
| 3 | # * All rights reserved.
 | 
|---|
| 4 | # *
 | 
|---|
| 5 | # * http://www.geocities.com/SiliconValley/Sector/5785/
 | 
|---|
| 6 | # * http://www.os2world.com/cdwriting
 | 
|---|
| 7 | # *
 | 
|---|
| 8 | # * Redistribution and use in source and binary forms, with or without
 | 
|---|
| 9 | # * modification, are permitted provided that the following conditions
 | 
|---|
| 10 | # * are met:
 | 
|---|
| 11 | # * 1. Redistributions of source code must retain the above copyright
 | 
|---|
| 12 | # *    notice, this list of conditions and the following disclaimer.
 | 
|---|
| 13 | # * 2. Redistributions in binary form must reproduce the above copyright
 | 
|---|
| 14 | # *    notice, this list of conditions and the following disclaimer in the
 | 
|---|
| 15 | # *    documentation and/or other materials provided with the distribution.
 | 
|---|
| 16 | # * 3. The authors name may not be used to endorse or promote products
 | 
|---|
| 17 | # *    derived from this software without specific prior written permission.
 | 
|---|
| 18 | # *
 | 
|---|
| 19 | # * THIS SOFTWARE IS PROVIDED ``AS IS'' AND
 | 
|---|
| 20 | # * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 | 
|---|
| 21 | # * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 | 
|---|
| 22 | # * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
 | 
|---|
| 23 | # * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 | 
|---|
| 24 | # * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 | 
|---|
| 25 | # * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 | 
|---|
| 26 | # * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 | 
|---|
| 27 | # * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 | 
|---|
| 28 | # * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 | 
|---|
| 29 | # * SUCH DAMAGE.
 | 
|---|
| 30 | # *
 | 
|---|
| 31 | # */
 | 
|---|
| 32 | #################################################################################
 | 
|---|
| 33 | #
 | 
|---|
| 34 | # Makefile for JPG IOProc
 | 
|---|
| 35 | #
 | 
|---|
| 36 | #   Generates
 | 
|---|
| 37 | #         JPEGIO.dll       - JPG Image IOproc
 | 
|---|
| 38 | #
 | 
|---|
| 39 | # Copyright Chris Wohlgemuth 2002
 | 
|---|
| 40 | #
 | 
|---|
| 41 | # http://www.os2world.com/cdwriting
 | 
|---|
| 42 | # http://www.geocities.com/SiliconValley/Sector/5785/
 | 
|---|
| 43 | #
 | 
|---|
| 44 | # Use VAC++ V3.08 and gmake to compile
 | 
|---|
| 45 | #
 | 
|---|
| 46 | #################################################################################
 | 
|---|
| 47 | 
 | 
|---|
| 48 | .SUFFIXES: .exe .obj .asm .inc .def .lrf .lst .sym .map .c .h .lib .dlg .txt .cod  \
 | 
|---|
| 49 |            .res .rc .l$(LANG) .dll
 | 
|---|
| 50 | 
 | 
|---|
| 51 | 
 | 
|---|
| 52 | #################################
 | 
|---|
| 53 | CC=icc
 | 
|---|
| 54 | CFLAGS       =   -Ge- /Gm+ -G4 /ss -Gl /O+ -Oc+ -Ol- /Q+ /C
 | 
|---|
| 55 | 
 | 
|---|
| 56 | #################################
 | 
|---|
| 57 | # Definitions for linker
 | 
|---|
| 58 | # LIBRARIES:
 | 
|---|
| 59 | #  MMPM2  == MMPM2 Library
 | 
|---|
| 60 | #################################
 | 
|---|
| 61 | MAPSYM=mapsym
 | 
|---|
| 62 | LIBS=   MMPM2.LIB GBM.LIB
 | 
|---|
| 63 | LDFLAGS =       -Ge- /Gm+ -G4 /ss -Gl /O+ -Oc+ -Ol-  /Q+ /B"/NOE"
 | 
|---|
| 64 | 
 | 
|---|
| 65 | 
 | 
|---|
| 66 | #################################
 | 
|---|
| 67 | # Object file lists
 | 
|---|
| 68 | #################################
 | 
|---|
| 69 | OBJS =  jpgproc.obj jpgfunc.obj
 | 
|---|
| 70 | 
 | 
|---|
| 71 | #################################
 | 
|---|
| 72 | # Target Descriptions
 | 
|---|
| 73 | #################################
 | 
|---|
| 74 | all:    JPEGIO.DLL 
 | 
|---|
| 75 | #iotest.exe 
 | 
|---|
| 76 | 
 | 
|---|
| 77 | 
 | 
|---|
| 78 | iotest.exe:     iotest.c
 | 
|---|
| 79 |         icc iotest.c $(LIBS)
 | 
|---|
| 80 | 
 | 
|---|
| 81 | JPEGIO.DLL:             $(OBJS)
 | 
|---|
| 82 |         $(CC) $(LDFLAGS)  /Fm$(basename $@) /Fe$@  $(OBJS) $(LIBS) JPEGIO.def
 | 
|---|
| 83 |         rc JPGproc.rc JPEGIO.dll
 | 
|---|
| 84 |         mapsym JPEGIO.map
 | 
|---|
| 85 | 
 | 
|---|
| 86 | 
 | 
|---|
| 87 | 
 | 
|---|
| 88 | jpgproc.obj:    jpgproc.c
 | 
|---|
| 89 |         $(CC) $(CFLAGS) /Fo$@ $<
 | 
|---|
| 90 | 
 | 
|---|
| 91 | jpgfunc.obj:    jpgfunc.c
 | 
|---|
| 92 |         $(CC) $(CFLAGS) /Fo$@ $<
 | 
|---|
| 93 | 
 | 
|---|
| 94 | clean:
 | 
|---|
| 95 |         -rm *.obj
 | 
|---|
| 96 |         -rm *.dll
 | 
|---|
| 97 |         -rm *.res
 | 
|---|
| 98 |         -rm *.*~
 | 
|---|
| 99 |         -rm *.map
 | 
|---|
| 100 |         -rm *.sym
 | 
|---|