source: trunk/JPGPROC/source/makefile@ 201

Last change on this file since 201 was 148, checked in by gyoung, 20 months ago

Automate building of all def files. Some minor code and makefile cleanup

File size: 3.2 KB
Line 
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#################################################################################
47include ../../make.inc
48
49.SUFFIXES: .exe .obj .asm .inc .def .lrf .lst .sym .map .c .h .lib .dlg .txt .cod \
50 .res .rc .l$(LANG) .dll
51
52
53#################################
54CC=icc
55CFLAGS = -Ge- /Gm+ -G4 /ss -Gl /O+ -Oc+ -Ol- /Q+ /C
56
57#################################
58# Definitions for linker
59# LIBRARIES:
60# MMPM2 == MMPM2 Library
61#################################
62MAPSYM=mapsym
63LIBS= MMPM2.LIB $(GBMLIBPATH)/GBM.LIB
64LDFLAGS = -Ge- /Gm+ -G4 /ss -Gl /O+ -Oc+ -Ol- /Q+ /B"/NOE"
65
66
67#################################
68# Object file lists
69#################################
70OBJS = jpgproc.obj jpgfunc.obj
71
72#################################
73# Target Descriptions
74#################################
75all: JPEGIO.DLL
76#iotest.exe
77
78
79iotest.exe: iotest.c
80 icc iotest.c $(LIBS)
81
82JPEGIO.DLL: $(OBJS)
83 cmd /C $(TOOLDIR)/create_def.cmd JPEGIO.def
84 $(CC) $(LDFLAGS) /Fm$(basename $@) /Fe$@ $(OBJS) $(LIBS) JPEGIO.def
85 rc JPGproc.rc JPEGIO.dll
86 mapsym JPEGIO.map
87
88
89
90jpgproc.obj: jpgproc.c
91 $(CC) $(CFLAGS) /Fo$@ $<
92
93jpgfunc.obj: jpgfunc.c
94 $(CC) $(CFLAGS) /Fo$@ $<
95
96clean:
97 -rm *.obj
98 -rm *.dll
99 -rm *.RES
100 -rm *.*~
101 -rm *.map
102 -rm *.sym
103 -rm *.def
Note: See TracBrowser for help on using the repository browser.