aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-05-19 23:49:18 -0400
committerRob Austein <sra@hactrn.net>2015-05-19 23:49:18 -0400
commit93941c6393ec3454c64528e537534284a81b04ac (patch)
tree3b384e4a90a96340c61ee2682f2e39bb9d6cdb21 /Makefile.in
Import FPGA I/O code from core/platform/novena/sw, add minimal
autoconf, whack with a club until it builds.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in46
1 files changed, 46 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
new file mode 100644
index 0000000..02ce7c7
--- /dev/null
+++ b/Makefile.in
@@ -0,0 +1,46 @@
+# @configure_input@
+
+INC = cryptech.h
+LIB = libcryptech.a
+
+BIN = hash hash_tester trng_extractor trng_tester aes_tester modexp_tester
+
+HAL_IO_OBJ_EIM = hal_io_eim.o novena-eim.o
+HAL_IO_OBJ_I2C = hal_io_i2c.o
+HAL_IO_OBJ = $(HAL_IO_OBJ_@FPGA_BUS@)
+
+LIB_OBJ = $(HAL_IO_OBJ)
+
+CC = @CC@
+CFLAGS = @CFLAGS@
+LDFLAGS = @LDFLAGS@
+LIBS = @LIBS@
+
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+bindir = @bindir@
+includedir = @includedir@
+libdir = @libdir@
+sysconfdir = @sysconfdir@
+
+all: $(LIB) $(BIN)
+
+*.o: $(INC)
+
+$(BIN): $(LIB)
+
+${LIB}: $(LIB_OBJ)
+ ar rcs $@ $^
+
+install: $(LIB) $(BIN) $(INC)
+ install $(LIB) $(libdir)
+ install $(BIN) $(bindir)
+ install $(INC) $(includedir)
+
+uninstall:
+ cd $(libdir); rm -f $(LIB)
+ cd $(bindir); rm -f ${BIN}
+ cd $(includedir); rm -f $(INC)
+
+clean:
+ rm -f *.o $(LIB) $(BIN)