| 1 |
#-*- Makefile -*-
|
1 |
#-*- Makefile -*-
|
| 2 |
|
2 |
|
| 3 |
## comment from Guido's original version in the 1990's
|
3 |
## comment from Guido's original version in the 1990's
|
| 4 |
# jconfig.h and Makefile obtained running 'CC="gcc -mno-cygwin" ./configure'
|
4 |
# jconfig.h and Makefile obtained running 'CC="gcc -mno-cygwin" ./configure'
|
| 5 |
# under CYGWIN. They are here since the configure script doesn't run
|
5 |
# under CYGWIN. They are here since the configure script doesn't run
|
| 6 |
# (I suspect) using the reduced set of tools we distribute.
|
6 |
# (I suspect) using the reduced set of tools we distribute.
|
| 7 |
## 2006-01-15 checked under current tools.
|
7 |
## 2006-01-15 checked under current tools.
|
| 8 |
|
8 |
|
| 9 |
CC= gcc
|
9 |
CC= gcc
|
| 10 |
CFLAGS= -O3 -I.
|
10 |
CFLAGS= -O3 -I.
|
| 11 |
|
11 |
|
| 12 |
# Put here the object file name for the correct system-dependent memory
|
12 |
# Put here the object file name for the correct system-dependent memory
|
| 13 |
# manager file. For Unix this is usually jmemnobs.o, but you may want
|
13 |
# manager file. For Unix this is usually jmemnobs.o, but you may want
|
| 14 |
# to use jmemansi.o or jmemname.o if you have limited swap space.
|
14 |
# to use jmemansi.o or jmemname.o if you have limited swap space.
|
| 15 |
SYSDEPMEM= jmemnobs.o
|
15 |
SYSDEPMEM= jmemnobs.o
|
| 16 |
|
16 |
|
| 17 |
# source files: JPEG library proper
|
17 |
# source files: JPEG library proper
|
| 18 |
ifeq ($(strip $(JPEGDIR)),jpeg-6b)
|
18 |
ifeq ($(strip $(JPEGDIR)),libjpeg-turbo)
|
| - |
|
19 |
LIBSOURCES= jcapimin.c jcapistd.c \
|
| 19 |
LIBSOURCES= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c \
|
20 |
jccoefct.c jccolor.c jcdctmgr.c jchuff.c jcinit.c \
|
| 20 |
jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \
|
21 |
jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \
|
| 21 |
jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c \
|
22 |
jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c \
|
| 22 |
jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c \
|
23 |
jdapistd.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c \
|
| 23 |
jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c \
|
24 |
jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c \
|
| - |
|
25 |
jdmaster.c jdmerge.c jdphuff.c jdpostct.c jdsample.c \
|
| 24 |
jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c \
|
26 |
jdtrans.c jerror.c jfdctflt.c jfdctfst.c jfdctint.c \
|
| 25 |
jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c \
|
27 |
jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c \
|
| 26 |
jquant2.c jutils.c jmemmgr.c
|
28 |
jquant2.c jutils.c jmemmgr.c jmemnobs.c jsimd_none.c
|
| 27 |
else
|
29 |
else
|
| 28 |
LIBSOURCES= jaricom.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolor.c \
|
30 |
LIBSOURCES= jaricom.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolor.c \
|
| 29 |
jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c \
|
31 |
jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c \
|
| 30 |
jcomapi.c jcparam.c jcprepct.c jcsample.c jctrans.c jdapimin.c \
|
32 |
jcomapi.c jcparam.c jcprepct.c jcsample.c jctrans.c jdapimin.c \
|
| 31 |
jdapistd.c jdarith.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c \
|
33 |
jdapistd.c jdarith.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c \
|
| 32 |
jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c \
|
34 |
jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c \
|
| 33 |
jdmerge.c jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c \
|
35 |
jdmerge.c jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c \
|
| 34 |
jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.c jquant1.c \
|
36 |
jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.c jquant1.c \
|
| 35 |
jquant2.c jutils.c jmemmgr.c
|
37 |
jquant2.c jutils.c jmemmgr.c
|
| 36 |
endif
|
38 |
endif
|
| 37 |
|
39 |
|
| 38 |
# These objectfiles are included in libjpeg.a
|
40 |
# These objectfiles are included in libjpeg.a
|
| 39 |
LIBOBJECTS= $(LIBSOURCES:.c=.o) $(SYSDEPMEM)
|
41 |
LIBOBJECTS= $(LIBSOURCES:.c=.o) $(SYSDEPMEM)
|
| 40 |
|
42 |
|
| 41 |
all: libjpeg.a
|
43 |
all: libjpeg.a
|
| 42 |
|
44 |
|
| 43 |
libjpeg.a: $(LIBOBJECTS)
|
45 |
libjpeg.a: $(LIBOBJECTS)
|
| 44 |
$(RM) libjpeg.a
|
46 |
$(RM) libjpeg.a
|
| 45 |
$(AR) libjpeg.a $(LIBOBJECTS)
|
47 |
$(AR) libjpeg.a $(LIBOBJECTS)
|
| 46 |
$(RANLIB) libjpeg.a
|
48 |
$(RANLIB) libjpeg.a
|
| 47 |
|
49 |
|
| 48 |
clean:
|
50 |
clean:
|
| 49 |
$(RM) -f libjpeg.a $(LIBOBJECTS)
|
51 |
$(RM) -f libjpeg.a $(LIBOBJECTS)
|