move io and keyval to libio and libkeyval
This commit is contained in:
parent
db13c085c8
commit
adbaf11d71
@ -6,17 +6,17 @@ run: status
|
|||||||
clean:
|
clean:
|
||||||
rm -f status *.o
|
rm -f status *.o
|
||||||
|
|
||||||
status: status.c order.c io.o keyval.o
|
status: status.c order.c libio.o libkeyval.o
|
||||||
$(CC) $(CFLAGS) -o $@ $@.c io.o keyval.o
|
$(CC) $(CFLAGS) -o $@ $@.c libio.o libkeyval.o
|
||||||
|
|
||||||
order.c: order.def.c
|
order.c: order.def.c
|
||||||
- cp -v order.def.c $@
|
- cp -v order.def.c $@
|
||||||
|
|
||||||
io.o: io.c io.h
|
libio.o: libio.c libio.h
|
||||||
$(CC) $(CFLAGS) -c -o $@ io.c
|
$(CC) $(CFLAGS) -c -o $@ libio.c
|
||||||
|
|
||||||
keyval.o: keyval.c keyval.h settings.c
|
libkeyval.o: libkeyval.c libkeyval.h settings.c
|
||||||
$(CC) $(CFLAGS) -c -o $@ keyval.c
|
$(CC) $(CFLAGS) -c -o $@ libkeyval.c
|
||||||
|
|
||||||
settings.c: settings.def.c
|
settings.c: settings.def.c
|
||||||
- cp -v settings.def.c $@
|
- cp -v settings.def.c $@
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#include <assert.h> /* assert(3) */
|
#include <assert.h> /* assert(3) */
|
||||||
#include <errno.h> /* errno */
|
#include <errno.h> /* errno */
|
||||||
#include <stdio.h> /* fputs(3), stdout, NULL */
|
#include <stdio.h> /* fputs(3), stdout, NULL */
|
||||||
#include "io.h"
|
#include "libio.h"
|
||||||
|
|
||||||
/* output */
|
/* output */
|
||||||
static char *hold = NULL;
|
static char *hold = NULL;
|
@ -4,7 +4,7 @@
|
|||||||
#include <assert.h> /* assert(3) */
|
#include <assert.h> /* assert(3) */
|
||||||
#include <stdlib.h> /* atoi(3) */
|
#include <stdlib.h> /* atoi(3) */
|
||||||
#include <string.h> /* strcmp(3) */
|
#include <string.h> /* strcmp(3) */
|
||||||
#include "keyval.h"
|
#include "libkeyval.h"
|
||||||
|
|
||||||
static struct State state = { 0 };
|
static struct State state = { 0 };
|
||||||
|
|
@ -4,8 +4,8 @@
|
|||||||
#include <stdlib.h> /* "mod_time.c" */
|
#include <stdlib.h> /* "mod_time.c" */
|
||||||
#include <time.h> /* "mod_time.c" */
|
#include <time.h> /* "mod_time.c" */
|
||||||
#include <unistd.h> /* sleep(3) */
|
#include <unistd.h> /* sleep(3) */
|
||||||
#include "io.h" /* drop(3), out(3), "mod_static.c" */
|
#include "libio.h" /* drop(3), out(3), "mod_static.c" */
|
||||||
#include "keyval.h" /* cpy(3), del(3), get(3), keyval_init(3), set(3),
|
#include "libkeyval.h" /* cpy(3), del(3), get(3), keyval_init(3), set(3),
|
||||||
* "mod_static.c" */
|
* "mod_static.c" */
|
||||||
|
|
||||||
#define ever (;;)
|
#define ever (;;)
|
||||||
|
Loading…
Reference in New Issue
Block a user