Skip to content

Commit

Permalink
Initial support for client-side EST for Java.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfigus committed Nov 17, 2014
1 parent 6ca1b5e commit fb28649
Show file tree
Hide file tree
Showing 28 changed files with 5,468 additions and 0 deletions.
43 changes: 43 additions & 0 deletions java/jni/Debug/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
################################################################################
# Automatically-generated file. Do not edit!
################################################################################

-include ../makefile.init

RM := rm -rf

# All of the sources participating in the build are defined here
-include sources.mk
-include subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
endif

-include ../makefile.defs

# Add inputs and outputs from these tool invocations to the build variables

# All Target
all: libciscojest.so

# Tool invocations
libciscojest.so: $(OBJS) $(USER_OBJS)
@echo 'Building target: $@'
@echo 'Invoking: GCC C Linker'
gcc -L"${CISCOSSL_HOME}/lib" -L"${EST_HOME}/lib" -shared -o "libciscojest.so" $(OBJS) $(USER_OBJS) $(LIBS)
@echo 'Finished building target: $@'
@echo ' '

# Other Targets
clean:
-$(RM) $(OBJS)$(C_DEPS)$(LIBRARIES) libciscojest.so
-@echo ' '

.PHONY: all clean dependents
.SECONDARY:

-include ../makefile.targets
8 changes: 8 additions & 0 deletions java/jni/Debug/objects.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
################################################################################
# Automatically-generated file. Do not edit!
################################################################################

USER_OBJS :=

LIBS := -lest

17 changes: 17 additions & 0 deletions java/jni/Debug/sources.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
################################################################################
# Automatically-generated file. Do not edit!
################################################################################

O_SRCS :=
C_SRCS :=
S_UPPER_SRCS :=
OBJ_SRCS :=
ASM_SRCS :=
OBJS :=
C_DEPS :=
LIBRARIES :=

# Every subdirectory with source files must be described here
SUBDIRS := \
. \

24 changes: 24 additions & 0 deletions java/jni/Debug/subdir.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
################################################################################
# Automatically-generated file. Do not edit!
################################################################################

# Add inputs and outputs from these tool invocations to the build variables
C_SRCS += \
../client.c

OBJS += \
./client.o

C_DEPS += \
./client.d


# Each subdirectory must supply rules for building sources it contributes
%.o: ../%.c
@echo 'Building file: $<'
@echo 'Invoking: GCC C Compiler'
gcc -I../../../src/safe_lib/include -I"${CISCOSSL_HOME}/include" -I"${JAVA_HOME}/include" -I"${JAVA_HOME}/include/linux" -I"${EST_HOME}/include" -fPIC -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '


14 changes: 14 additions & 0 deletions java/jni/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
if ENABLE_JNI
if JAVA_HOME_SET
lib_LTLIBRARIES = libciscojest.la
AM_CFLAGS = -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -I$(SSL_CFLAGS) -I../.. -I$(srcdir)/../../src -I$(srcdir)/../../src/safe_lib/include
libciscojest_la_LDFLAGS = -release $(PACKAGE_VERSION)
libciscojest_la_SOURCES = client.c
libciscojest_la_LIBADD = ../../src/est/libest.la ../../src/safe_lib/libsafe.la
library_includedir=$(includedir)/est
library_include_HEADERS = jest.h
#EXTRA_DIST = jest.h
else
$(warning JAVA_HOME is not set, JNI layer will not be built.)
endif
endif
Loading

0 comments on commit fb28649

Please sign in to comment.