1616
1717PLATFORM := $(shell uname | sed -e 's/_.*//')
1818
19- ifndef LT
19+ ifndef LIBTOOL
2020 ifeq ($(PLATFORM), Darwin)
21- LT :=glibtool
21+ LIBTOOL :=glibtool
2222 else
23- LT :=libtool
23+ LIBTOOL :=libtool
2424 endif
2525endif
2626ifeq ($(PLATFORM), CYGWIN)
2727 NO_UNDEFINED:=-no-undefined
2828endif
29- LTCOMPILE = $(LT ) --mode=compile --tag=CC $(CC)
30- INSTALL_CMD = $(LT ) --mode=install install
31- UNINSTALL_CMD = $(LT ) --mode=uninstall rm
29+ LTCOMPILE = $(LIBTOOL ) --mode=compile --tag=CC $(CC)
30+ INSTALL_CMD = $(LIBTOOL ) --mode=install install
31+ UNINSTALL_CMD = $(LIBTOOL ) --mode=uninstall rm
3232
3333#Output filenames for various targets.
3434ifndef LIBNAME
@@ -49,15 +49,15 @@ src/ciphers/aes/aes_enc.o: src/ciphers/aes/aes.c src/ciphers/aes/aes_tab.c
4949LOBJECTS = $(OBJECTS:.o=.lo)
5050
5151$(LIBNAME): $(OBJECTS)
52- $(LT ) --mode=link --tag=CC $(CC) $(LTC_LDFLAGS) $(LOBJECTS) $(EXTRALIBS) -o $@ -rpath $(LIBPATH) -version-info $(VERSION_LT) $(NO_UNDEFINED)
52+ $(LIBTOOL ) --mode=link --tag=CC $(CC) $(LTC_LDFLAGS) $(LOBJECTS) $(EXTRALIBS) -o $@ -rpath $(LIBPATH) -version-info $(VERSION_LT) $(NO_UNDEFINED)
5353
5454test: $(call print-help,test,Builds the library and the 'test' application to run all self-tests) $(LIBNAME) $(TOBJECTS)
55- $(LT ) --mode=link --tag=CC $(CC) $(LTC_LDFLAGS) -o $(TEST) $(TOBJECTS) $(LIBNAME) $(EXTRALIBS)
55+ $(LIBTOOL ) --mode=link --tag=CC $(CC) $(LTC_LDFLAGS) -o $(TEST) $(TOBJECTS) $(LIBNAME) $(EXTRALIBS)
5656
5757# build the demos from a template
5858define DEMO_template
5959$(1): $(call print-help,$(1),Builds the library and the '$(1)' demo) demos/$(1).o $$(LIBNAME)
60- $$(LT ) --mode=link --tag=CC $$(CC) $$(LTC_LDFLAGS) $$^ $$(EXTRALIBS) -o $(1)
60+ $$(LIBTOOL ) --mode=link --tag=CC $$(CC) $$(LTC_LDFLAGS) $$^ $$(EXTRALIBS) -o $(1)
6161endef
6262
6363$(foreach demo, $(strip $(DEMOS)), $(eval $(call DEMO_template,$(demo))))
0 commit comments