summaryrefslogtreecommitdiff
path: root/Makethird
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-04-06 13:39:22 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-04-06 13:39:22 +0200
commit0accac9acc379d627499db1a55743e071df892a7 (patch)
tree212b2514a1af143c67c18830c83ffec2d0dcc822 /Makethird
parent22ad7c043fa3e9b9f23b5ba1960b8c8d90c08f9e (diff)
downloadmupdf-0accac9acc379d627499db1a55743e071df892a7.tar.xz
Move scripts and config files into "scripts" directory.
Diffstat (limited to 'Makethird')
-rw-r--r--Makethird16
1 files changed, 3 insertions, 13 deletions
diff --git a/Makethird b/Makethird
index c58af8e1..e56020c9 100644
--- a/Makethird
+++ b/Makethird
@@ -26,7 +26,7 @@ FREETYPE_LIB=$(OBJDIR)/libfreetype.a
$(FREETYPE_LIB): $(FREETYPE_OBJ)
$(AR_CMD)
-FTCC_CMD = $(CC_CMD) -DFT2_BUILD_LIBRARY -DDARWIN_NO_CARBON -Iwin32 \
+FTCC_CMD = $(CC_CMD) -DFT2_BUILD_LIBRARY -DDARWIN_NO_CARBON \
'-DFT_CONFIG_MODULES_H="slimftmodules.h"' \
'-DFT_CONFIG_OPTIONS_H="slimftoptions.h"'
@@ -104,13 +104,9 @@ endif
ifneq "$(jpeg_dir)" ""
THIRD_LIBS += $(JPEG_LIB)
-THIRD_INCS += -I$(jpeg_dir) -I$(OBJDIR)
+THIRD_INCS += -I$(jpeg_dir)
LIBS := $(filter-out -ljpeg, $(LIBS))
-# jconfig.h does not exist in the pristine source
-$(OBJDIR)/jconfig.h:
- cp $(jpeg_dir)/jconfig.txt $@
-
JPEG_SRC=$(addprefix $(jpeg_dir)/, \
jaricom.c \
jcomapi.c \
@@ -145,7 +141,6 @@ JPEG_SRC=$(addprefix $(jpeg_dir)/, \
jmemansi.c)
JPEG_OBJ=$(JPEG_SRC:$(jpeg_dir)/%.c=$(OBJDIR)/jpeg_%.o)
JPEG_LIB=$(OBJDIR)/libjpeg.a
-$(JPEG_OBJ): $(OBJDIR)/jconfig.h
$(JPEG_LIB): $(JPEG_OBJ)
$(AR_CMD)
$(OBJDIR)/jpeg_%.o: $(jpeg_dir)/%.c
@@ -159,10 +154,6 @@ THIRD_LIBS += $(OPENJPEG_LIB)
THIRD_INCS += -I$(openjpeg_dir)
LIBS := $(filter-out -lopenjpeg, $(LIBS))
-# opj_config.h does not exist in the pristine source
-$(OBJDIR)/opj_config.h:
- cp $(openjpeg_dir)/../opj_config.h.in.user $@
-
OPENJPEG_SRC=$(addprefix $(openjpeg_dir)/, \
bio.c \
cio.c \
@@ -184,11 +175,10 @@ OPENJPEG_SRC=$(addprefix $(openjpeg_dir)/, \
tgt.c )
OPENJPEG_OBJ=$(OPENJPEG_SRC:$(openjpeg_dir)/%.c=$(OBJDIR)/opj_%.o)
OPENJPEG_LIB=$(OBJDIR)/libopenjpeg.a
-$(OPENJPEG_OBJ): $(OBJDIR)/opj_config.h
$(OPENJPEG_LIB): $(OPENJPEG_OBJ)
$(AR_CMD)
$(OBJDIR)/opj_%.o: $(openjpeg_dir)/%.c
- $(CC_CMD) -I$(OBJDIR) -DOPJ_STATIC
+ $(CC_CMD) -DOPJ_STATIC
endif