Commit a8413476 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Checkpoint minor changes from long ago.

parent 036f44fe
...@@ -10,21 +10,19 @@ all: imagezip imageunzip ...@@ -10,21 +10,19 @@ all: imagezip imageunzip
include $(TESTBED_SRCDIR)/GNUmakerules include $(TESTBED_SRCDIR)/GNUmakerules
CFLAGS = -O -g -static CFLAGS = -O -g -static
LIBS = -lz LIBS = -lz
imagezip: imagezip.o imagezip: imagezip.o
$(CC) $(CFLAGS) imagezip.o $(LIBS) -o imagezip $(CC) $(CFLAGS) imagezip.o $(LIBS) -o imagezip
newzip: newzip.o imageunzip: imageunzip.o
$(CC) $(CFLAGS) newzip.o $(LIBS) -o newzip
imageunzip: imageunzip.o
$(CC) $(CFLAGS) imageunzip.o $(LIBS) -o imageunzip $(CC) $(CFLAGS) imageunzip.o $(LIBS) -o imageunzip
newunzip: newunzip.o
$(CC) $(CFLAGS) newunzip.o $(LIBS) -o newunzip
install: $(INSTALL_BINDIR)/imagezip $(INSTALL_BINDIR)/imageunzip install: $(INSTALL_BINDIR)/imagezip $(INSTALL_BINDIR)/imageunzip
client-install:
$(INSTALL_PROGRAM) imagezip /usr/local/bin/imagezip
$(INSTALL_PROGRAM) imageunzip /usr/local/bin/imageunzip
clean: clean:
/bin/rm -f *.o imagezip imageunzip /bin/rm -f *.o imagezip imageunzip
...@@ -42,7 +42,7 @@ int slice; ...@@ -42,7 +42,7 @@ int slice;
#define SECSIZE 512 #define SECSIZE 512
#define BSIZE (32 * 1024) #define BSIZE (32 * 1024)
#define OUTSIZE (2 * BSIZE) #define OUTSIZE (1 * BSIZE)
char inbuf[BSIZE], outbuf[OUTSIZE + SECSIZE], zeros[BSIZE]; char inbuf[BSIZE], outbuf[OUTSIZE + SECSIZE], zeros[BSIZE];
int infd, outfd; int infd, outfd;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment