[2] | 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 REGENTS 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 | #
|
---|
[4] | 34 | # Makefile for STREAM IOProc
|
---|
[2] | 35 | #
|
---|
| 36 | # Generates
|
---|
[4] | 37 | # STREAMIO.dll - Stream storage IOproc
|
---|
[2] | 38 | #
|
---|
[4] | 39 | # Copyright Chris Wohlgemuth 2005
|
---|
[2] | 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
|
---|
| 63 | LDFLAGS = -Ge- /Gm+ -G4 /ss -Gl /O+ -Oc+ -Ol- /Q+ /B"/NOE"
|
---|
| 64 |
|
---|
| 65 |
|
---|
| 66 | #################################
|
---|
| 67 | # Object file lists
|
---|
| 68 | #################################
|
---|
| 69 | OBJS = streamproc.obj streamfunc.obj
|
---|
| 70 |
|
---|
| 71 | #################################
|
---|
| 72 | # Target Descriptions
|
---|
| 73 | #################################
|
---|
| 74 | all: STREAMIO.DLL testproc.exe
|
---|
| 75 | #iotest.exe
|
---|
| 76 |
|
---|
| 77 | testproc.exe: testproc.c
|
---|
| 78 | icc /ss testproc.c $(LIBS)
|
---|
| 79 |
|
---|
| 80 | iotest.exe: iotest.c
|
---|
| 81 | icc iotest.c $(LIBS)
|
---|
| 82 |
|
---|
| 83 | STREAMIO.DLL: $(OBJS)
|
---|
| 84 | $(CC) $(LDFLAGS) /Fm$(basename $@) /Fe$@ $(OBJS) $(LIBS) streamio.def
|
---|
| 85 | rc streamproc.rc STREAMIO.DLL
|
---|
| 86 | mapsym streamio.map
|
---|
| 87 |
|
---|
| 88 |
|
---|
| 89 |
|
---|
| 90 | streamproc.obj: streamproc.c
|
---|
| 91 | $(CC) $(CFLAGS) /Fo$@ $<
|
---|
| 92 |
|
---|
| 93 | streamfunc.obj: streamfunc.c
|
---|
| 94 | $(CC) $(CFLAGS) /Fo$@ $<
|
---|
| 95 |
|
---|
| 96 | clean:
|
---|
| 97 | -rm *.obj
|
---|
| 98 | -rm *.dll
|
---|
[133] | 99 | -rm *.RES
|
---|
[2] | 100 | -rm *.*~
|
---|
| 101 | -rm *.map
|
---|
[4] | 102 | -rm *.sym
|
---|