aboutsummaryrefslogblamecommitdiff
path: root/Makefile.in
blob: b984151b2fa97d59be98d9fedbd3c80a99357c4d (plain) (tree)
1
2
3
4
5
6
7
8
9

                   

                               
                                                         
 


                                           



                           


                               

                              
 
           
 
              
 
              

                    


                                    

          

                                      

      
                           
# @configure_input@

INC		= cryptech.h
LIB		= libcryptech.a
OBJ		= ${IO_OBJ} csprng.o hash.o aes_keywrap.o

IO_OBJ		= ${IO_OBJ_@FPGA_BUS@}
IO_OBJ_EIM	= hal_io_eim.o novena-eim.o
IO_OBJ_I2C 	= hal_io_i2c.o

CC		= @CC@
CFLAGS		= @CFLAGS@
LDFLAGS		= @LDFLAGS@

prefix		= @prefix@
exec_prefix	= @exec_prefix@
includedir	= @includedir@
libdir		= @libdir@

all: ${LIB}

${OBJ}: ${INC}

${LIB}: ${OBJ}
	ar rcs $@ $^

install: ${LIB} ${INC}
	install ${LIB} ${libdir}
	install ${INC} ${includedir}

uninstall:
	cd ${libdir}; rm -f ${LIB}
	cd ${includedir}; rm -f ${INC}

clean:
	rm -f ${OBJ} ${LIB}