From b5bff3e613ed6379a6582a025374716e4ed1acea Mon Sep 17 00:00:00 2001 From: fedora Cloud User Date: Mon, 8 Apr 2024 05:39:40 +0000 Subject: [PATCH] RC1 --- Makefile | 16 ++++++++++------ README.md | 41 ++++++++++++++++++++++++++++++++++++++++- testbench.c | 2 +- 3 files changed, 51 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index c8ab3a7..383f7c4 100644 --- a/Makefile +++ b/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 diff --git a/README.md b/README.md index 5c8e486..c4d9894 100644 --- a/README.md +++ b/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 +``` + diff --git a/testbench.c b/testbench.c index 5172336..7b5b609 100644 --- a/testbench.c +++ b/testbench.c @@ -31,7 +31,7 @@ */ #include -#include "arrayutils.h" +#include "main.h" /* MACROS ====================================================================*/