open-src/util/lndir/Makefile
changeset 49 21835ed559d8
parent 17 151bef9509d4
child 156 1dec9ce4addc
equal deleted inserted replaced
48:a6bb916436b7 49:21835ed559d8
    26 # Except as contained in this notice, the name of a copyright holder
    26 # Except as contained in this notice, the name of a copyright holder
    27 # shall not be used in advertising or otherwise to promote the sale, use
    27 # shall not be used in advertising or otherwise to promote the sale, use
    28 # or other dealings in this Software without prior written authorization
    28 # or other dealings in this Software without prior written authorization
    29 # of the copyright holder.
    29 # of the copyright holder.
    30 #
    30 #
    31 # @(#)Makefile	1.1	06/05/10
    31 # @(#)Makefile	1.2	06/08/25
    32 #
    32 #
    33 
    33 
    34 PWD:sh=pwd
    34 PWD:sh=pwd
    35 TOP=$(PWD)/../..
    35 TOP=$(PWD)/../..
    36 
    36 
    64 
    64 
    65 # Run configure script
    65 # Run configure script
    66 $(SOURCE_DIR)/Makefile: $(UNPACK_TARGET)
    66 $(SOURCE_DIR)/Makefile: $(UNPACK_TARGET)
    67 	(cd $(SOURCE_DIR) ; \
    67 	(cd $(SOURCE_DIR) ; \
    68 	 chmod a+x configure ; \
    68 	 chmod a+x configure ; \
    69 	 CC=$(CC) CFLAGS="$(LIB_CFLAGS)" LD="$(CC) $(PROG_CFLAGS) $(LDFLAGS)" LDFLAGS="$(PROG_LDFLAGS)" PKG_CONFIG_PATH=$(PROTODIR)/usr/X11/lib/pkgconfig ./configure $(LNDIR_CFG) )
    69 	 CC=$(CC) CFLAGS="$(LIB_CFLAGS)" LD="$(CC) $(PROG_CFLAGS) $(LDFLAGS)" LDFLAGS="$(PROG_LDFLAGS)" PKG_CONFIG_PATH=$(PROTODIR)/usr/lib/pkgconfig:$(PROTODIR)/usr/X11/lib/pkgconfig ./configure $(LNDIR_CFG) )
    70 
    70 
    71 # Install
    71 # Install
    72 install_gen: $(SOURCE_DIR)/Makefile
    72 install_gen: $(SOURCE_DIR)/Makefile
    73 	(cd $(SOURCE_DIR) ; $(MAKE) $(MFLAGS) -e DESTDIR=$(PROTODIR) install)
    73 	(cd $(SOURCE_DIR) ; $(MAKE) $(MFLAGS) -e DESTDIR=$(PROTODIR) install)