mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-02-26 22:02:43 +08:00
more structuring
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user