19 # |
19 # |
20 # CDDL HEADER END |
20 # CDDL HEADER END |
21 # |
21 # |
22 # Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. |
22 # Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. |
23 # |
23 # |
24 #ident "@(#)Makefile.sfw 1.4 11/01/21 SMI" |
24 #ident "@(#)Makefile.sfw 1.5 11/03/15 SMI" |
25 |
25 |
26 include ../Makefile.cmd |
26 include ../Makefile.cmd |
27 # include ../Makefile.cmd.64 |
27 # include ../Makefile.cmd.64 |
28 |
28 |
29 VER = $(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh) |
29 VER = $(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh) |
67 TARGET_ENV += CXXLD="$(CXXLD)" |
67 TARGET_ENV += CXXLD="$(CXXLD)" |
68 TARGET_ENV += CPPFLAGS="$(CPPFLAGS)" |
68 TARGET_ENV += CPPFLAGS="$(CPPFLAGS)" |
69 TARGET_ENV += LD_OPTIONS="$(LDLIBS) $(LDFLAGS) -lnsl" |
69 TARGET_ENV += LD_OPTIONS="$(LDLIBS) $(LDFLAGS) -lnsl" |
70 TARGET_ENV += PATH="$(SRC)/tools:$(SFW_PATH)" |
70 TARGET_ENV += PATH="$(SRC)/tools:$(SFW_PATH)" |
71 TARGET_ENV += MAKE="$(CCSMAKE)" |
71 TARGET_ENV += MAKE="$(CCSMAKE)" |
|
72 TARGET_ENV += CONFIG_SHELL=$(CONFIG_SHELL) |
72 |
73 |
73 all:= TARGET = all |
74 all:= TARGET = all |
74 install:= TARGET = -e install |
75 install:= TARGET = -e install |
75 install:= TARGET_ENV += halpredir=/etc/hal/fdi/preprobe/10osvendor |
76 install:= TARGET_ENV += halpredir=/etc/hal/fdi/preprobe/10osvendor |
76 install:= TARGET_ENV += DESTDIR="$(ROOT)" |
77 install:= TARGET_ENV += DESTDIR="$(ROOT)" |
142 # and seperate the HPIJS and CUPS PPD data, we need to replicate the code and |
143 # and seperate the HPIJS and CUPS PPD data, we need to replicate the code and |
143 # build it twice. Once for the HPIJS support used by LP and once for the rest |
144 # build it twice. Once for the HPIJS support used by LP and once for the rest |
144 # of the support used for CUPS and SANE. |
145 # of the support used for CUPS and SANE. |
145 # |
146 # |
146 $(VER)-hpijs/config.status: $(VER)-hpijs/configure |
147 $(VER)-hpijs/config.status: $(VER)-hpijs/configure |
147 (cd $(@D) ; env - $(TARGET_ENV) ./configure $(CONFIGURE_OPTIONS)) |
148 (cd $(@D) ; env - $(TARGET_ENV) $(CONFIG_SHELL) ./configure $(CONFIGURE_OPTIONS)) |
148 |
149 |
149 $(VER)-hpijs/configure: $(VER)/configure |
150 $(VER)-hpijs/configure: $(VER)/configure |
150 ($(RM) -r $(@D) ; mkdir $(@D)) |
151 ($(RM) -r $(@D) ; mkdir $(@D)) |
151 (cd $(VER) ; find . | cpio -dump ../$(@D)) |
152 (cd $(VER) ; find . | cpio -dump ../$(@D)) |
152 $(TOUCH) $@ |
153 $(TOUCH) $@ |
153 |
154 |
154 $(VER)/config.status: $(VER)/configure .WAIT $(VER)-hpijs/configure |
155 $(VER)/config.status: $(VER)/configure .WAIT $(VER)-hpijs/configure |
155 (cd $(VER) ; env - $(TARGET_ENV) ./configure $(CONFIGURE_OPTIONS)) |
156 (cd $(VER) ; env - $(TARGET_ENV) $(CONFIG_SHELL) ./configure $(CONFIGURE_OPTIONS)) |
156 |
157 |
157 $(VER)/configure: $(VER)/configure.in |
158 $(VER)/configure: $(VER)/configure.in |
158 (cd $(VER) ; aclocal-1.10; libtoolize --force; autoconf ) |
159 (cd $(VER) ; aclocal-1.10; libtoolize --force; autoconf ) |
159 |
160 |
160 $(VER)/configure.in: $(VER)/.patched |
161 $(VER)/configure.in: $(VER)/.patched |