45 # Parfait doesn't work with the GNU 4.7 compilers yet. |
45 # Parfait doesn't work with the GNU 4.7 compilers yet. |
46 ifeq ($(strip $(PARFAIT_BUILD)),yes) |
46 ifeq ($(strip $(PARFAIT_BUILD)),yes) |
47 COMPILER = gcc3 |
47 COMPILER = gcc3 |
48 endif |
48 endif |
49 |
49 |
|
50 CXX += $(CC_BITS) |
|
51 |
50 CFLAGS += -I/usr/include/kerberosv5 |
52 CFLAGS += -I/usr/include/kerberosv5 |
51 CFLAGS += $(CPP_LARGEFILES) |
53 CFLAGS += $(CPP_LARGEFILES) |
|
54 |
|
55 CONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin |
|
56 CONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib |
|
57 CONFIGURE_OPTIONS.64 += LDFLAGS="$(LDFLAGS) -m64" |
|
58 CONFIGURE_OPTIONS.64 += LIBS="-m64" |
52 |
59 |
53 # Squid has own prefix |
60 # Squid has own prefix |
54 CONFIGURE_PREFIX = /usr/squid |
61 CONFIGURE_PREFIX = /usr/squid |
55 |
62 |
56 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
63 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
57 CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/libexec |
64 CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/libexec |
58 CONFIGURE_OPTIONS += --localstatedir=/var/squid |
65 CONFIGURE_OPTIONS += --localstatedir=/var/squid |
59 CONFIGURE_OPTIONS += --sharedstatedir=/var/squid |
66 CONFIGURE_OPTIONS += --sharedstatedir=/var/squid |
60 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/squid |
67 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/squid |
61 CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_PREFIX)/man |
68 CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_PREFIX)/man |
|
69 CONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_PREFIX)/sbin |
62 CONFIGURE_OPTIONS += --enable-arp-acl |
70 CONFIGURE_OPTIONS += --enable-arp-acl |
63 CONFIGURE_OPTIONS += --enable-auth='basic,digest,negotiate,ntlm' |
71 CONFIGURE_OPTIONS += --enable-auth='basic,digest,negotiate,ntlm' |
64 CONFIGURE_OPTIONS += --enable-basic-auth-helpers='DB,NCSA,YP,LDAP,PAM,getpwnam,MSNT,POP3,multi-domain-NTLM,SMB,SASL' |
72 CONFIGURE_OPTIONS += --enable-basic-auth-helpers='DB,NCSA,YP,LDAP,PAM,getpwnam,MSNT,POP3,multi-domain-NTLM,SMB,SASL' |
65 CONFIGURE_OPTIONS += --enable-cache-digests |
73 CONFIGURE_OPTIONS += --enable-cache-digests |
66 CONFIGURE_OPTIONS += --enable-carp |
74 CONFIGURE_OPTIONS += --enable-carp |
93 |
101 |
94 COMPONENT_POST_BUILD_ACTION= \ |
102 COMPONENT_POST_BUILD_ACTION= \ |
95 (cd $(COMPONENT_DIR) ; \ |
103 (cd $(COMPONENT_DIR) ; \ |
96 $(CP) files/squid.conf.default $(@D)/src) |
104 $(CP) files/squid.conf.default $(@D)/src) |
97 |
105 |
|
106 ASLR_MODE = $(ASLR_ENABLE) |
|
107 |
98 # common targets |
108 # common targets |
99 build: $(BUILD_32) |
109 build: $(BUILD_64) |
100 |
110 |
101 install: $(INSTALL_32) |
111 install: $(INSTALL_64) |
102 |
112 |
103 # configure says it needs cppunit to test with. |
113 # configure says it needs cppunit to test with. |
104 # After some work I can get cppunit to build but it quickly |
114 # After some work I can get cppunit to build but it quickly |
105 # falls over during test so giving up. |
115 # falls over during test so giving up. |
106 # I don't think the test suite really tests squid's functionality anyways. |
116 # I don't think the test suite really tests squid's functionality anyways. |