more structuring

This commit is contained in:
brianb
2000-02-27 19:24:44 +00:00
parent d4e241606c
commit fcd8153070
8 changed files with 146 additions and 115 deletions

View File

@@ -3,14 +3,18 @@ CC = gcc
INC = -I ../include `glib-config --cflags`
LIBS = -L ../libmdb -lmdb `glib-config --libs`
PROGS = prcat
PROGS = prcat prtable
PRCATOBJS = prcat.o
PRTABLEOBJS = prtable.o
all: $(PROGS)
prcat: $(PRCATOBJS)
$(CC) -g -o $@ $(PRCATOBJS) $(LIBS)
prtable: $(PRTABLEOBJS)
$(CC) -g -o $@ $(PRTABLEOBJS) $(LIBS)
clean:
rm -f core *.o $(PROGS)

View File

@@ -28,7 +28,7 @@ short digit;
struct stat status;
int rows, cur, off;
unsigned char buf[2048];
MDB_HANDLE *mdb;
MdbHandle *mdb;
if (argc<2) {