home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 28
/
amigaformatcd28.iso
/
-seriously_amiga-
/
archivers
/
base64wos
/
base64
/
makefile
< prev
next >
Wrap
Makefile
|
1998-05-09
|
2KB
|
79 lines
CC = cc
PROGS = base64
#CFLAGS = -g
CFLAGS = -O
all: $(PROGS)
clean:
rm -f $(PROGS) *.o *.bak *.shar core *.out
base64: base64.o
$(CC) base64.o -o base64 $(CFLAGS)
# Create shell archive
shar:
shar -a README Makefile base64.1 base64.c >base64.shar
# Check for lint
lint:
lint base64.c
# View manual page
manpage:
nroff -man base64.1 | $(PAGER)
# Print manual page
printman:
ptroff -man base64.1
# Test it
test: base64
base64 -e <base64 >/tmp/base641.bak
base64 -d </tmp/base641.bak >/tmp/base642.bak
cmp base64 /tmp/base642.bak
base64 -e base64 /tmp/base641.bak
base64 -d /tmp/base641.bak /tmp/base642.bak
cmp base64 /tmp/base642.bak
# rm /tmp/base641.bak /tmp/base642.bak
# Really test it
wringer: base64
base64 -e base64.c /tmp/base641.bak # E 1
base64 -e /tmp/base641.bak /tmp/base642.bak # E 2
base64 -e /tmp/base642.bak /tmp/base643.bak # E 3
base64 -e /tmp/base643.bak /tmp/base644.bak # E 4
base64 -e /tmp/base644.bak /tmp/base645.bak # E 5
base64 -e /tmp/base645.bak /tmp/base646.bak # E 6
base64 -e /tmp/base646.bak /tmp/base647.bak # E 7
base64 -e /tmp/base647.bak /tmp/base648.bak # E 8
base64 -e /tmp/base648.bak /tmp/base649.bak # E 9
base64 -e /tmp/base649.bak /tmp/base64a.bak # E 10
base64 -e /tmp/base64a.bak /tmp/base64b.bak # E 11
base64 -e /tmp/base64b.bak /tmp/base64c.bak # E 12
base64 -e /tmp/base64c.bak /tmp/base64d.bak # E 13
#
base64 -d /tmp/base64d.bak /tmp/dase64c.bak # D 1
base64 -d /tmp/dase64c.bak /tmp/dase64b.bak # D 2
base64 -d /tmp/dase64b.bak /tmp/dase64a.bak # D 3
base64 -d /tmp/dase64a.bak /tmp/dase649.bak # D 4
base64 -d /tmp/dase649.bak /tmp/dase648.bak # D 5
base64 -d /tmp/dase648.bak /tmp/dase647.bak # D 6
base64 -d /tmp/dase647.bak /tmp/dase646.bak # D 7
base64 -d /tmp/dase646.bak /tmp/dase645.bak # D 8
base64 -d /tmp/dase645.bak /tmp/dase644.bak # D 9
base64 -d /tmp/dase644.bak /tmp/dase643.bak # D 10
base64 -d /tmp/dase643.bak /tmp/dase642.bak # D 11
base64 -d /tmp/dase642.bak /tmp/dase641.bak # D 13
base64 -d /tmp/dase641.bak /tmp/dase640.bak # D 13
#
cmp /tmp/dase640.bak base64.c
rm /tmp/base64?.bak /tmp/dase64?.bak