Comparison

util-src/makefile @ 11009:74ef9f2334f3

configure: Pass compiler flag to enable ICU only when building util.encodings Passing it in CFLAGS applied to all modules, which was not needed.
author Kim Alvefur <zash@zash.se>
date Sun, 12 Jul 2020 23:28:04 +0200
parent 9661:8154a8841bb2
child 11166:51e5149ed0ad
comparison
equal deleted inserted replaced
11008:fd735fe2fc50 11009:74ef9f2334f3
21 $(INSTALL_DATA) $(ALL) $(TARGET) 21 $(INSTALL_DATA) $(ALL) $(TARGET)
22 22
23 clean: 23 clean:
24 rm -f $(ALL) $(patsubst %.so,%.o,$(ALL)) 24 rm -f $(ALL) $(patsubst %.so,%.o,$(ALL))
25 25
26 encodings.o: encodings.c
27 $(CC) $(CFLAGS) $(IDNA_FLAGS) -c -o $@ $<
26 encodings.so: encodings.o 28 encodings.so: encodings.o
27 $(LD) $(LDFLAGS) -o $@ $< $(LDLIBS) $(IDNA_LIBS) 29 $(LD) $(LDFLAGS) -o $@ $< $(LDLIBS) $(IDNA_LIBS)
28 30
29 hashes.so: hashes.o 31 hashes.so: hashes.o
30 $(LD) $(LDFLAGS) -o $@ $< $(LDLIBS) $(OPENSSL_LIBS) 32 $(LD) $(LDFLAGS) -o $@ $< $(LDLIBS) $(OPENSSL_LIBS)