The R Project SVN R

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
51085 ripley 1
#-*- Makefile -*-
2
 
3
## comment from Guido's original version in the 1990's
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 
6
# (I suspect) using the reduced set of tools we distribute.
7
## 2006-01-15 checked under current tools.
8
 
49700 ripley 9
CC= gcc
37098 ripley 10
CFLAGS= -O3 -I.
6430 guido 11
 
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
14
# to use jmemansi.o or jmemname.o if you have limited swap space.
49700 ripley 15
SYSDEPMEM= jmemnobs.o
6430 guido 16
 
17
# source files: JPEG library proper
53404 ripley 18
ifeq ($(strip $(JPEGDIR)),libjpeg-turbo)
19
LIBSOURCES= jcapimin.c jcapistd.c \
20
	jccoefct.c jccolor.c jcdctmgr.c jchuff.c jcinit.c \
21
	jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \
22
	jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c \
23
	jdapistd.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c \
24
	jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c \
25
	jdmaster.c jdmerge.c jdphuff.c jdpostct.c jdsample.c \
26
	jdtrans.c jerror.c jfdctflt.c jfdctfst.c jfdctint.c \
27
	jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c \
28
	jquant2.c jutils.c jmemmgr.c jmemnobs.c jsimd_none.c
51082 ripley 29
else
49700 ripley 30
LIBSOURCES= jaricom.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolor.c \
31
        jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c \
32
        jcomapi.c jcparam.c jcprepct.c jcsample.c jctrans.c jdapimin.c \
33
        jdapistd.c jdarith.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c \
34
        jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c \
35
        jdmerge.c jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c \
36
        jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.c jquant1.c \
53404 ripley 37
        jquant2.c jutils.c jmemmgr.c
49700 ripley 38
endif
39
 
6430 guido 40
# These objectfiles are included in libjpeg.a
49700 ripley 41
LIBOBJECTS= $(LIBSOURCES:.c=.o) $(SYSDEPMEM)
6430 guido 42
 
49700 ripley 43
all:  libjpeg.a
6430 guido 44
 
45
libjpeg.a:  $(LIBOBJECTS)
46
	$(RM) libjpeg.a
47
	$(AR) libjpeg.a  $(LIBOBJECTS)
11578 ripley 48
	$(RANLIB) libjpeg.a
6430 guido 49
 
50
clean:
49700 ripley 51
	$(RM) -f libjpeg.a  $(LIBOBJECTS)