initial import of sources

This commit is contained in:
2023-01-05 16:18:18 +02:00
commit 5ae5004e20
10 changed files with 1650 additions and 0 deletions

36
Makefile Normal file
View File

@@ -0,0 +1,36 @@
#
# Copyright 2023 Oleg Borodin <borodin@unix7.org>
#
all: test
CC = cc
CFLAGS = -O -Wall -I. -std=c99 -pthread
LDFLAGS = -pthread
.c.o:
$(CC) -c $(CFLAGS) -o $@ $<
hwmemory.c: hwmemory.h
hwmemory.o: hwmemory.c
hwstore.c: hwstore.h
hwstore.o: hwstore.c
hwstore_test.c: hwstore.h
hwstore_test.o: hwstore_test.c
OBJS += hwstore.o
OBJS += hwmemory.o
hwstore_test: hwstore_test.o $(OBJS)
$(CC) $(LDFLAGS) -o $@ hwstore_test.o $(OBJS)
test: hwstore_test
./hwstore_test
clean:
rm -f *_test
rm -f *.o *~
#EOF