comparison libtomcrypt/Makefile.in @ 1484:f68ee671bf6d

use parent $CC etc
author Matt Johnston <matt@ucc.asn.au>
date Sat, 10 Feb 2018 18:57:20 +0800
parents 190b7af3bdac
children fc4c9ef61856
comparison
equal deleted inserted replaced
1483:190b7af3bdac 1484:f68ee671bf6d
20 #Or if you are using Intel C compiler you might need something like: 20 #Or if you are using Intel C compiler you might need something like:
21 # 21 #
22 # make -f makefile.unix CC=icc AR=xiar CFLAGS="-fast -DUSE_LTM -DLTM_DESC -I/path/to/libtommath" EXTRALIBS=/path/to/libtommath/libtommath.a all 22 # make -f makefile.unix CC=icc AR=xiar CFLAGS="-fast -DUSE_LTM -DLTM_DESC -I/path/to/libtommath" EXTRALIBS=/path/to/libtommath/libtommath.a all
23 # 23 #
24 24
25 # Dropbear can build out of tree
25 VPATH=@srcdir@ 26 VPATH=@srcdir@
26 srcdir=@srcdir@ 27 srcdir=@srcdir@
27 28
28 #The following can be overridden from command line e.g. "make -f makefile.unix CC=gcc ARFLAGS=rcs" 29 #The following can be overridden from command line e.g. "make -f makefile.unix CC=gcc ARFLAGS=rcs"
29 DESTDIR = 30 DESTDIR =
30 PREFIX = /usr/local 31 PREFIX = /usr/local
31 LIBPATH = $(PREFIX)/lib 32 LIBPATH = $(PREFIX)/lib
32 INCPATH = $(PREFIX)/include 33 INCPATH = $(PREFIX)/include
33 DATAPATH = $(PREFIX)/share/doc/libtomcrypt/pdf 34 DATAPATH = $(PREFIX)/share/doc/libtomcrypt/pdf
34 BINPATH = $(PREFIX)/bin 35 BINPATH = $(PREFIX)/bin
35 CC = cc 36 # Dropbear passes paths from parent makefile
36 AR = ar 37 #CC = cc
38 #AR = ar
37 ARFLAGS = r 39 ARFLAGS = r
38 RANLIB = ranlib 40 #RANLIB = ranlib
39 #CFLAGS = -O2 -DUSE_LTM -DLTM_DESC -I../libtommath 41 #CFLAGS = -O2 -DUSE_LTM -DLTM_DESC -I../libtommath
40 EXTRALIBS = ../libtommath/libtommath.a 42 EXTRALIBS = ../libtommath/libtommath.a
41 43
42 #Compilation flags 44 #Compilation flags
43 LTC_CFLAGS = -Isrc/headers/ -I$(srcdir)/src/headers/ -I../ -I$(srcdir)/../ -DLTC_SOURCE -I../libtommath/ -I$(srcdir)/../libtommath/ $(CFLAGS) 45 LTC_CFLAGS = -Isrc/headers/ -I$(srcdir)/src/headers/ -I../ -I$(srcdir)/../ -DLTC_SOURCE -I../libtommath/ -I$(srcdir)/../libtommath/ $(CFLAGS)