RC1
This commit is contained in:
parent
05b6d98378
commit
b5bff3e613
16
Makefile
16
Makefile
@ -13,16 +13,16 @@
|
||||
# ******************************************************************************
|
||||
|
||||
CC=gcc
|
||||
CFLAGS= -g3 -O0 -Wall -Wextra
|
||||
MACROS=
|
||||
INCLUDE_DIR=/usr/local/include
|
||||
LIB_DIR=/usr/local/lib
|
||||
CFLAGS?= -g3 -O0 -Wall -Wextra
|
||||
MACROS?=
|
||||
INCLUDE_DIR?=/usr/local/include
|
||||
LIB_DIR?=/usr/local/lib
|
||||
INCLUDE_PATH=-I $(INCLUDE_DIR)
|
||||
LIB_PATH=-L $(LIB_DIR)
|
||||
LIBS=
|
||||
TARGET=arrayutils
|
||||
|
||||
all: testbench lib$(TARGET).a
|
||||
all: lib$(TARGET).a
|
||||
|
||||
testbench: testbench.c main.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 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
|
||||
# $^ Will expand to be all the sensitivity list
|
||||
|
||||
41
README.md
41
README.md
@ -1,2 +1,41 @@
|
||||
# array_utils-release
|
||||
# Overview
|
||||
|
||||
This is a C library that implements a set of utility functions related to byte
|
||||
arrays (e.g. printing byte array buffers).
|
||||
|
||||
# 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 does not depend upon any other non-os provided library.
|
||||
|
||||
3. Build
|
||||
|
||||
To build, simply run
|
||||
|
||||
```bash
|
||||
make
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
*/
|
||||
#include <linux/types.h>
|
||||
|
||||
#include "arrayutils.h"
|
||||
#include "main.h"
|
||||
|
||||
/* MACROS ====================================================================*/
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user