- use correct include dir (Simon Pasch)

- cleanup while at it
This commit is contained in:
Bernhard Reutner-Fischer 2007-08-28 12:41:56 +00:00
parent 4427e87559
commit 080026489c
1 changed files with 6 additions and 6 deletions

View File

@ -35,7 +35,7 @@ $(JPEG_DIR)/.unpacked: $(DL_DIR)/$(JPEG_SOURCE)
$(JPEG_CAT) $(DL_DIR)/$(JPEG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
toolchain/patch-kernel.sh $(JPEG_DIR) package/jpeg/ jpeg\*.patch
$(CONFIG_UPDATE) $(JPEG_DIR)
touch $(JPEG_DIR)/.unpacked
touch $@
$(JPEG_DIR)/.configured: $(JPEG_DIR)/.unpacked
(cd $(JPEG_DIR); rm -rf config.cache; \
@ -54,28 +54,28 @@ $(JPEG_DIR)/.configured: $(JPEG_DIR)/.unpacked
--sysconfdir=/etc \
--datadir=/usr/share \
--localstatedir=/var \
--includedir=/include \
--includedir=/usr/include \
--mandir=/usr/man \
--infodir=/usr/info \
--enable-shared \
--enable-static \
--without-x \
)
touch $(JPEG_DIR)/.configured
touch $@
$(JPEG_DIR)/.libs/libjpeg.a: $(JPEG_DIR)/.configured
$(MAKE) -C $(JPEG_DIR) all
touch -c $(JPEG_DIR)/.libs/libjpeg.a
touch -c $@
$(STAGING_DIR)/lib/libjpeg.a: $(JPEG_DIR)/.libs/libjpeg.a
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(JPEG_DIR) install-headers install-lib
rm $(STAGING_DIR)/lib/libjpeg.la
touch -c $(STAGING_DIR)/lib/libjpeg.a
touch -c $@
$(TARGET_DIR)/usr/lib/libjpeg.so: $(STAGING_DIR)/lib/libjpeg.a
cp -dpf $(STAGING_DIR)/lib/libjpeg.so* $(TARGET_DIR)/usr/lib/
-$(STRIP) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libjpeg.so*
touch -c $(TARGET_DIR)/usr/lib/libjpeg.so
touch -c $@
jpeg: uclibc $(TARGET_DIR)/usr/lib/libjpeg.so