UDS hash implemented
FW has seg fault
This commit is contained in:
parent
778bbe1ff2
commit
351686119b
@ -1,8 +0,0 @@
|
||||
#include "fun1.h"
|
||||
|
||||
int fun1()
|
||||
{
|
||||
printf("Hello from FN1\n");
|
||||
// fun2();
|
||||
return 0;
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
|
||||
int fun1();
|
@ -1,9 +1,10 @@
|
||||
#include "fun1.h"
|
||||
#include "layer2.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("Hello World\n");
|
||||
fun1();
|
||||
printf("Hello World\n\n\n");
|
||||
startProtocol();
|
||||
printf("\n\nSeccessful exit\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,7 @@ CC=gcc
|
||||
IDIR=./include
|
||||
LDIR=./lib
|
||||
ODIR=./out
|
||||
_DEPS = fun1.h
|
||||
_DEPS = layer2.h layer1.h
|
||||
DEPS = $(pathsbst %,(IDIR)/%,%(_DEPS))
|
||||
|
||||
|
||||
@ -11,8 +11,8 @@ CFLAGS= -I. -T$(IDIR)
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
all: main.c fun1.c
|
||||
${CC} -o $(ODIR)/main2 main.c fun1.c
|
||||
all: main.c layer1.c
|
||||
${CC} -o $(ODIR)/main2 main.c layer1.c layer2.c -lssl -lcrypto
|
||||
|
||||
clean:
|
||||
rm -r $(ODIR)/*
|
||||
|
BIN
trial1/out/main2
Normal file → Executable file
BIN
trial1/out/main2
Normal file → Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user