Mercurial > dropbear
comparison libtomcrypt/makefile.shared @ 1739:13d834efc376 fuzz
merge from main
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 15 Oct 2020 19:55:15 +0800 |
parents | e9dba7abd939 |
children |
comparison
equal
deleted
inserted
replaced
1562:768ebf737aa0 | 1739:13d834efc376 |
---|---|
14 # make -f makefile.shared PREFIX=/opt/libtom install | 14 # make -f makefile.shared PREFIX=/opt/libtom install |
15 # | 15 # |
16 | 16 |
17 PLATFORM := $(shell uname | sed -e 's/_.*//') | 17 PLATFORM := $(shell uname | sed -e 's/_.*//') |
18 | 18 |
19 ifndef LT | 19 ifndef LIBTOOL |
20 ifeq ($(PLATFORM), Darwin) | 20 ifeq ($(PLATFORM), Darwin) |
21 LT:=glibtool | 21 LIBTOOL:=glibtool |
22 else | 22 else |
23 LT:=libtool | 23 LIBTOOL:=libtool |
24 endif | 24 endif |
25 endif | 25 endif |
26 ifeq ($(PLATFORM), CYGWIN) | 26 ifeq ($(PLATFORM), CYGWIN) |
27 NO_UNDEFINED:=-no-undefined | 27 NO_UNDEFINED:=-no-undefined |
28 endif | 28 endif |
29 LTCOMPILE = $(LT) --mode=compile --tag=CC $(CC) | 29 LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) |
30 INSTALL_CMD = $(LT) --mode=install install | 30 INSTALL_CMD = $(LIBTOOL) --mode=install install |
31 UNINSTALL_CMD = $(LT) --mode=uninstall rm | 31 UNINSTALL_CMD = $(LIBTOOL) --mode=uninstall rm |
32 | 32 |
33 #Output filenames for various targets. | 33 #Output filenames for various targets. |
34 ifndef LIBNAME | 34 ifndef LIBNAME |
35 LIBNAME=libtomcrypt.la | 35 LIBNAME=libtomcrypt.la |
36 endif | 36 endif |
47 $(LTCOMPILE) $(LTC_CFLAGS) $(CPPFLAGS) $(LTC_LDFLAGS) -o $@ -c $< | 47 $(LTCOMPILE) $(LTC_CFLAGS) $(CPPFLAGS) $(LTC_LDFLAGS) -o $@ -c $< |
48 | 48 |
49 LOBJECTS = $(OBJECTS:.o=.lo) | 49 LOBJECTS = $(OBJECTS:.o=.lo) |
50 | 50 |
51 $(LIBNAME): $(OBJECTS) | 51 $(LIBNAME): $(OBJECTS) |
52 $(LT) --mode=link --tag=CC $(CC) $(LTC_CFLAGS) $(CPPFLAGS) $(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) |
53 | 53 |
54 test: $(call print-help,test,Builds the library and the 'test' application to run all self-tests) $(LIBNAME) $(TOBJECTS) | 54 test: $(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_CFLAGS) $(CPPFLAGS) $(LTC_LDFLAGS) -o $(TEST) $(TOBJECTS) $(LIBNAME) $(EXTRALIBS) | 55 $(LIBTOOL) --mode=link --tag=CC $(CC) $(LTC_LDFLAGS) -o $(TEST) $(TOBJECTS) $(LIBNAME) $(EXTRALIBS) |
56 | 56 |
57 # build the demos from a template | 57 # build the demos from a template |
58 define DEMO_template | 58 define DEMO_template |
59 $(1): $(call print-help,$(1),Builds the library and the '$(1)' demo) demos/$(1).o $$(LIBNAME) | 59 $(1): $(call print-help,$(1),Builds the library and the '$(1)' demo) demos/$(1).o $$(LIBNAME) |
60 $$(LT) --mode=link --tag=CC $$(CC) $$(LTC_CFLAGS) $$(CPPFLAGS) $$(LTC_LDFLAGS) $$^ $$(EXTRALIBS) -o $(1) | 60 $$(LIBTOOL) --mode=link --tag=CC $$(CC) $$(LTC_LDFLAGS) $$^ $$(EXTRALIBS) -o $(1) |
61 endef | 61 endef |
62 | 62 |
63 $(foreach demo, $(strip $(DEMOS)), $(eval $(call DEMO_template,$(demo)))) | 63 $(foreach demo, $(strip $(DEMOS)), $(eval $(call DEMO_template,$(demo)))) |
64 | 64 |
65 install: $(call print-help,install,Installs the library + headers + pkg-config file) .common_install | 65 install: $(call print-help,install,Installs the library + headers + pkg-config file) .common_install |