mbedtls extract CDI key working
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
#include <stdio.h>
|
||||
#include <hellomake.h>
|
||||
|
||||
void myPrintHelloMake(void) {
|
||||
|
||||
printf("Hello makefiles!\n");
|
||||
|
||||
return;
|
||||
}
|
||||
Binary file not shown.
@@ -1,8 +0,0 @@
|
||||
#include <hellomake.h>
|
||||
|
||||
int main() {
|
||||
// call a function in another file
|
||||
myPrintHelloMake();
|
||||
|
||||
return(0);
|
||||
}
|
||||
@@ -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.
Reference in New Issue
Block a user