mbedtls extract CDI key working

This commit is contained in:
atul.jha
2020-06-18 17:39:14 +05:30
parent 7c6c959767
commit 3fb14de7ab
11 changed files with 25 additions and 38 deletions

View File

@@ -1,9 +0,0 @@
#include <stdio.h>
#include <hellomake.h>
void myPrintHelloMake(void) {
printf("Hello makefiles!\n");
return;
}

Binary file not shown.

View File

@@ -1,8 +0,0 @@
#include <hellomake.h>
int main() {
// call a function in another file
myPrintHelloMake();
return(0);
}

View File

@@ -1,3 +1,4 @@
IDIR =../include
CC=gcc
CFLAGS=-I$(IDIR)
@@ -5,22 +6,25 @@ CFLAGS=-I$(IDIR)
ODIR=obj
LDIR =../lib
LIBS=-lm
LIBS=-lm -lmbedcrypto -lmbedtls -lmbedx509
_DEPS = hellomake.h
_DEPS = functions.h ROMfunctions.h
DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS))
_OBJ = hellomake.o hellofunc.o
_OBJ = main.o functions.o ROMfunctions.o
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
$(ODIR)/%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
hellomake: $(OBJ)
main: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
.PHONY: clean
debug: $(OBJ)
$(CC) -g -o $@ $^ $(CFLAGS) $(LIBS)
.PHONY: clean main debug
clean:
rm -f $(ODIR)/*.o *~ core $(INCDIR)/*~

Binary file not shown.

Binary file not shown.