RC1
This commit is contained in:
parent
f28360e331
commit
7a47f595a4
2
LICENSE
2
LICENSE
@ -58,7 +58,7 @@ APPENDIX: How to apply the Apache License to your work.
|
|||||||
|
|
||||||
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
|
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
|
||||||
|
|
||||||
Copyright 2024 Jackrabbit-Labs-LLC
|
Copyright 2024 Jackrabbit-Founders-LLC
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
|||||||
16
Makefile
16
Makefile
@ -13,16 +13,16 @@
|
|||||||
# ******************************************************************************
|
# ******************************************************************************
|
||||||
|
|
||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS= -g3 -O0 -Wall -Wextra
|
CFLAGS?= -g3 -O0 -Wall -Wextra
|
||||||
MACROS=
|
MACROS?=
|
||||||
INCLUDE_DIR=/usr/local/include
|
INCLUDE_DIR?=/usr/local/include
|
||||||
LIB_DIR=/usr/local/lib
|
LIB_DIR?=/usr/local/lib
|
||||||
INCLUDE_PATH=-I $(INCLUDE_DIR)
|
INCLUDE_PATH=-I $(INCLUDE_DIR)
|
||||||
LIB_PATH=-L $(LIB_DIR)
|
LIB_PATH=-L $(LIB_DIR)
|
||||||
LIBS=-l arrayutils
|
LIBS=-l arrayutils
|
||||||
TARGET=fmapi
|
TARGET=fmapi
|
||||||
|
|
||||||
all: testbench lib$(TARGET).a
|
all: lib$(TARGET).a
|
||||||
|
|
||||||
testbench: testbench.c main.o
|
testbench: testbench.c main.o
|
||||||
$(CC) $^ $(CFLAGS) $(MACROS) $(INCLUDE_PATH) $(LIB_PATH) $(LIBS) -o $@
|
$(CC) $^ $(CFLAGS) $(MACROS) $(INCLUDE_PATH) $(LIB_PATH) $(LIBS) -o $@
|
||||||
@ -43,7 +43,11 @@ install: lib$(TARGET).a
|
|||||||
sudo cp lib$(TARGET).a $(LIB_DIR)/
|
sudo cp lib$(TARGET).a $(LIB_DIR)/
|
||||||
sudo cp main.h $(INCLUDE_DIR)/$(TARGET).h
|
sudo cp main.h $(INCLUDE_DIR)/$(TARGET).h
|
||||||
|
|
||||||
.PHONY: all clean doc install
|
uninstall:
|
||||||
|
sudo rm $(LIB_DIR)/lib$(TARGET).a
|
||||||
|
sudo rm $(INCLUDE_DIR)/$(TARGET).h
|
||||||
|
|
||||||
|
.PHONY: all clean doc install uninstall
|
||||||
|
|
||||||
# Variables
|
# Variables
|
||||||
# $^ Will expand to be all the sensitivity list
|
# $^ Will expand to be all the sensitivity list
|
||||||
|
|||||||
53
README.md
53
README.md
@ -1,2 +1,53 @@
|
|||||||
# FMAPI-release
|
# Overview
|
||||||
|
|
||||||
|
This is a C library that implements the objects defined in the CXL 2.0
|
||||||
|
Fabric Management API specification. This library provides the definition of
|
||||||
|
the objects and the ability to serialize / deserialize the objects into a byte
|
||||||
|
stream for transmission.
|
||||||
|
|
||||||
|
# Supported Operating System Versions
|
||||||
|
|
||||||
|
- Ubuntu 23.10
|
||||||
|
- Fedora 38, 39
|
||||||
|
|
||||||
|
# Building
|
||||||
|
|
||||||
|
1. Install OS libraries
|
||||||
|
|
||||||
|
Install the following build packages to compile the software on the following
|
||||||
|
operating systems.
|
||||||
|
|
||||||
|
**Ubuntu:**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
apt install build-essential
|
||||||
|
```
|
||||||
|
|
||||||
|
**Fedora:**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Build Dependencies
|
||||||
|
|
||||||
|
This library is dependent upon the following projects.
|
||||||
|
|
||||||
|
- [array_utils](https://github.com/JackrabbitLabs/array_utils)
|
||||||
|
|
||||||
|
For each of these repositories, in the order listed, clone and execute:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
make install
|
||||||
|
```
|
||||||
|
|
||||||
|
This will install a library (.a) and header file to the standard os location
|
||||||
|
(e.g. /usr/local/include, /usr/local/lib)
|
||||||
|
|
||||||
|
3. Build
|
||||||
|
|
||||||
|
After building the required dependencies run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
make
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
@ -29,7 +29,7 @@
|
|||||||
*/
|
*/
|
||||||
#include <arrayutils.h>
|
#include <arrayutils.h>
|
||||||
|
|
||||||
#include "fmapi.h"
|
#include "main.h"
|
||||||
|
|
||||||
/* MACROS ====================================================================*/
|
/* MACROS ====================================================================*/
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user