mirror of
https://github.com/wnayes/macutils.git
synced 2025-03-11 10:30:00 +00:00
Build system: Replace make files with meson
This commit is contained in:
parent
a5e3a5e59c
commit
d4ec944263
10
.gitignore
vendored
10
.gitignore
vendored
@ -1,11 +1,3 @@
|
||||
.vscode
|
||||
*.o
|
||||
all
|
||||
binhex/binhex
|
||||
comm/frommac
|
||||
comm/tomac
|
||||
frommac/frommac
|
||||
hexbin/hexbin
|
||||
macunpack/macunpack
|
||||
mixed/macsave
|
||||
mixed/macstream
|
||||
/builddir
|
||||
|
@ -1,51 +0,0 @@
|
||||
CFLAGS = -O $(CF)
|
||||
|
||||
SRCS = binhex.c dofile.c
|
||||
|
||||
OBJS = binhex.o dofile.o
|
||||
|
||||
LIB = ../crc/libcrc.a
|
||||
TNAME = ../util/transname
|
||||
BNAME = ../util/backtrans
|
||||
UNAME = ../util/util
|
||||
INAME = ../fileio/rdfile
|
||||
GNAME = ../fileio/fileglob
|
||||
XOBJS = $(TNAME).o $(BNAME).o $(UNAME).o $(INAME).o $(GNAME).o
|
||||
XSRCS = $(TNAME).c $(BNAME).c $(UNAME).c $(INAME).c $(GNAME).c
|
||||
|
||||
binhex: $(OBJS) $(XOBJS) $(LIB)
|
||||
$(CC) $(CFLAGS) -o binhex $(OBJS) $(XOBJS) $(LIB)
|
||||
|
||||
$(LIB): ../crc/makecrc.c
|
||||
(cd ../crc; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(TNAME).o: $(TNAME).c
|
||||
(cd ../util; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(BNAME).o: $(BNAME).c
|
||||
(cd ../util; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(UNAME).o: $(UNAME).c
|
||||
(cd ../util; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(INAME).o: $(INAME).c
|
||||
(cd ../fileio; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(GNAME).o: $(GNAME).c
|
||||
(cd ../fileio; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
lint:
|
||||
lint $(CF) $(LFLAGS) $(SRCS) $(XSRCS)
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
|
||||
clobber:clean
|
||||
rm -f binhex
|
||||
|
||||
binhex.o: ../fileio/machdr.h
|
||||
binhex.o: ../fileio/rdfile.h
|
||||
binhex.o: ../util/patchlevel.h
|
||||
dofile.o: ../fileio/machdr.h
|
||||
dofile.o: ../fileio/rdfile.h
|
||||
|
@ -1,90 +0,0 @@
|
||||
CFLAGS = -O $(CF)
|
||||
|
||||
SRCS1 = tomac.c xm_to.c ym_to.c zm_to.c tty.c globals.c
|
||||
SRCS2 = frommac.c xm_from.c ym_from.c zm_from.c tty.c globals.c
|
||||
|
||||
OBJS1 = tomac.o xm_to.o ym_to.o zm_to.o tty.o globals.o
|
||||
OBJS2 = frommac.o xm_from.o ym_from.o zm_from.o tty.o globals.o
|
||||
|
||||
LIB = ../crc/libcrc.a
|
||||
TNAME = ../util/transname
|
||||
BNAME = ../util/backtrans
|
||||
UNAME = ../util/util
|
||||
INAME = ../fileio/rdfile
|
||||
ONAME = ../fileio/wrfile
|
||||
GNAME = ../fileio/fileglob
|
||||
XOBJS1 = $(TNAME).o $(BNAME).o $(UNAME).o $(INAME).o $(GNAME).o
|
||||
XOBJS2 = $(TNAME).o $(UNAME).o $(ONAME).o $(GNAME).o
|
||||
XSRCS1 = $(TNAME).c $(BNAME).c $(UNAME).c $(INAME).c $(GNAME).c
|
||||
XSRCS2 = $(TNAME).c $(UNAME).c $(ONAME).c $(GNAME).c
|
||||
|
||||
all: tomac frommac
|
||||
touch all
|
||||
|
||||
tomac: $(OBJS1) $(XOBJS1)
|
||||
$(CC) $(CFLAGS) -o tomac $(OBJS1) $(XOBJS1)
|
||||
|
||||
frommac: $(OBJS2) $(XOBJS2)
|
||||
$(CC) $(CFLAGS) -o frommac $(OBJS2) $(XOBJS2)
|
||||
|
||||
$(LIB): ../crc/makecrc.c
|
||||
(cd ../crc; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(TNAME).o: $(TNAME).c
|
||||
(cd ../util; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(BNAME).o: $(BNAME).c
|
||||
(cd ../util; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(UNAME).o: $(UNAME).c
|
||||
(cd ../util; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(INAME).o: $(INAME).c
|
||||
(cd ../fileio; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(ONAME).o: $(ONAME).c
|
||||
(cd ../fileio; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(GNAME).o: $(GNAME).c
|
||||
(cd ../fileio; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
lint:
|
||||
lint $(CF) $(LFLAGS) $(SRCS1) $(XSRCS)
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
|
||||
clobber:clean
|
||||
rm -f all tomac frommac
|
||||
|
||||
tomac.o: comm.h
|
||||
tomac.o: ../fileio/machdr.h
|
||||
tomac.o: ../fileio/rdfile.h
|
||||
tomac.o: ../util/patchlevel.h
|
||||
tomac.o: globals.h
|
||||
xm_to.o: comm.h
|
||||
xm_to.o: ../fileio/machdr.h
|
||||
xm_to.o: ../fileio/rdfile.h
|
||||
xm_to.o: ../util/masks.h
|
||||
xm_to.o: globals.h
|
||||
xm_to.o: protocol.h
|
||||
ym_to.o: comm.h
|
||||
zm_to.o: comm.h
|
||||
frommac.o: comm.h
|
||||
frommac.o: ../util/patchlevel.h
|
||||
frommac.o: ../fileio/machdr.h
|
||||
frommac.o: globals.h
|
||||
frommac.o: ../fileio/fileglob.h
|
||||
frommac.o: ../fileio/wrfile.h
|
||||
xm_from.o: comm.h
|
||||
xm_from.o: ../fileio/machdr.h
|
||||
xm_from.o: ../fileio/wrfile.h
|
||||
xm_from.o: ../util/masks.h
|
||||
xm_from.o: globals.h
|
||||
xm_from.o: protocol.h
|
||||
ym_from.o: comm.h
|
||||
zm_from.o: comm.h
|
||||
globals.o: globals.h
|
||||
tty.o: ../util/masks.h
|
||||
tty.o: protocol.h
|
||||
tty.o: globals.h
|
27
crc/makefile
27
crc/makefile
@ -1,27 +0,0 @@
|
||||
CFLAGS = -O $(CF)
|
||||
CRCC = arc.c ccitt.c kermit.c binhex.c ccitt32.c zip.c
|
||||
CRCO = arc.o ccitt.o kermit.o binhex.o ccitt32.o zip.o
|
||||
|
||||
libcrc.a: $(CRCO)
|
||||
ar r libcrc.a $(CRCO)
|
||||
if test -f /usr/bin/ranlib ;\
|
||||
then \
|
||||
ranlib libcrc.a ;\
|
||||
fi
|
||||
|
||||
clean:
|
||||
rm -f $(CRCC) $(CRCO) libcrc.a makecrc makecrc.o
|
||||
|
||||
$(CRCC): makecrc
|
||||
./makecrc
|
||||
|
||||
makecrc: makecrc.o
|
||||
cc $(CFLAGS) -O -o makecrc makecrc.o
|
||||
|
||||
arc.o: arc.c
|
||||
ccitt.o: ccitt.c
|
||||
kermit.o: kermit.c
|
||||
binhex.o: binhex.c
|
||||
ccitt32.o: ccitt32.c
|
||||
zip.o: zip.c
|
||||
|
@ -1,33 +0,0 @@
|
||||
CFLAGS= -O $(CF)
|
||||
|
||||
all: wrfile.o rdfile.o fileglob.o
|
||||
touch all
|
||||
|
||||
wrfile.o: wrfile.c
|
||||
|
||||
rdfile.o: rdfile.c
|
||||
|
||||
clean:
|
||||
rm -f wrfile.o
|
||||
rm -f rdfile.o
|
||||
rm -f fileglob.o
|
||||
rm -f all
|
||||
|
||||
wrfile.o: machdr.h
|
||||
wrfile.o: wrfile.h
|
||||
wrfile.o: wrfileopt.h
|
||||
wrfile.o: fileglob.h
|
||||
wrfile.o: aufs.h
|
||||
wrfile.o: appledouble.h
|
||||
wrfile.o: ../util/util.h
|
||||
wrfile.o: ../util/curtime.h
|
||||
rdfile.o: machdr.h
|
||||
rdfile.o: rdfile.h
|
||||
rdfile.o: rdfileopt.h
|
||||
rdfile.o: ../util/util.h
|
||||
rdfile.o: ../util/curtime.h
|
||||
rdfile.o: ../util/masks.h
|
||||
rdfile.o: aufs.h
|
||||
rdfile.o: appledouble.h
|
||||
fileglob.o: fileglob.h
|
||||
|
130
hexbin/makefile
130
hexbin/makefile
@ -1,130 +0,0 @@
|
||||
CFLAGS= -O $(CF)
|
||||
|
||||
SRCS = hexbin.c \
|
||||
dl.c \
|
||||
hecx.c \
|
||||
hqx.c \
|
||||
mu.c \
|
||||
buffer.c \
|
||||
crc.c \
|
||||
readline.c \
|
||||
printhdr.c \
|
||||
globals.c
|
||||
|
||||
OBJS = hexbin.o \
|
||||
dl.o \
|
||||
hecx.o \
|
||||
hqx.o \
|
||||
mu.o \
|
||||
buffer.o \
|
||||
crc.o \
|
||||
readline.o \
|
||||
printhdr.o \
|
||||
globals.o
|
||||
|
||||
LIB = ../crc/libcrc.a
|
||||
TNAME = ../util/transname
|
||||
BNAME = ../util/backtrans
|
||||
UNAME = ../util/util
|
||||
ONAME = ../fileio/wrfile
|
||||
GNAME = ../fileio/fileglob
|
||||
XOBJS = $(TNAME).o $(BNAME).o $(UNAME).o $(ONAME).o $(GNAME).o
|
||||
XSRCS = $(TNAME).c $(BNAME).c $(UNAME).c $(ONAME).c $(GNAME).c
|
||||
CRCS = ../crc/binhex.c
|
||||
|
||||
hexbin: $(OBJS) $(LIB) $(XOBJS)
|
||||
$(CC) $(CFLAGS) -o hexbin $(OBJS) $(XOBJS) $(LIB)
|
||||
|
||||
$(LIB): ../crc/makecrc.c
|
||||
(cd ../crc; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(TNAME).o: $(TNAME).c
|
||||
(cd ../util; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(BNAME).o: $(BNAME).c
|
||||
(cd ../util; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(UNAME).o: $(UNAME).c
|
||||
(cd ../util; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(ONAME).o: $(ONAME).c
|
||||
(cd ../fileio; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(GNAME).o: $(GNAME).c
|
||||
(cd ../fileio; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
lint:
|
||||
lint $(CF) $(LFLAGS) $(SRCS) $(XSRCS) $(CRCS)
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
|
||||
clobber:clean
|
||||
rm -f hexbin
|
||||
|
||||
hexbin.o: globals.h
|
||||
hexbin.o: crc.h
|
||||
hexbin.o: readline.h
|
||||
hexbin.o: ../util/masks.h
|
||||
hexbin.o: ../util/util.h
|
||||
hexbin.o: ../util/patchlevel.h
|
||||
hexbin.o: ../fileio/wrfile.h
|
||||
hexbin.o: ../fileio/wrfileopt.h
|
||||
hexbin.o: ../fileio/machdr.h
|
||||
hexbin.o: ../fileio/kind.h
|
||||
hexbin.o: ../util/curtime.h
|
||||
hexbin.o: hexbin.h
|
||||
dl.o: hexbin.h
|
||||
dl.o: globals.h
|
||||
dl.o: crc.h
|
||||
dl.o: readline.h
|
||||
dl.o: ../fileio/machdr.h
|
||||
dl.o: ../fileio/wrfile.h
|
||||
dl.o: ../util/util.h
|
||||
dl.o: buffer.h
|
||||
dl.o: printhdr.h
|
||||
hecx.o: hexbin.h
|
||||
hecx.o: globals.h
|
||||
hecx.o: crc.h
|
||||
hecx.o: readline.h
|
||||
hecx.o: ../util/masks.h
|
||||
hecx.o: ../util/util.h
|
||||
hecx.o: ../fileio/machdr.h
|
||||
hecx.o: ../fileio/wrfile.h
|
||||
hecx.o: buffer.h
|
||||
hecx.o: printhdr.h
|
||||
hqx.o: hexbin.h
|
||||
hqx.o: globals.h
|
||||
hqx.o: readline.h
|
||||
hqx.o: crc.h
|
||||
hqx.o: buffer.h
|
||||
hqx.o: ../fileio/machdr.h
|
||||
hqx.o: ../fileio/wrfile.h
|
||||
hqx.o: ../util/util.h
|
||||
hqx.o: printhdr.h
|
||||
mu.o: hexbin.h
|
||||
mu.o: globals.h
|
||||
mu.o: readline.h
|
||||
mu.o: ../util/masks.h
|
||||
mu.o: ../util/util.h
|
||||
mu.o: ../fileio/machdr.h
|
||||
mu.o: ../fileio/wrfile.h
|
||||
mu.o: buffer.h
|
||||
mu.o: printhdr.h
|
||||
buffer.o: globals.h
|
||||
buffer.o: ../util/util.h
|
||||
buffer.o: buffer.h
|
||||
buffer.o: ../fileio/wrfile.h
|
||||
crc.o: hexbin.h
|
||||
crc.o: crc.h
|
||||
crc.o: ../util/masks.h
|
||||
crc.o: globals.h
|
||||
readline.o: readline.h
|
||||
readline.o: globals.h
|
||||
printhdr.o: printhdr.h
|
||||
printhdr.o: globals.h
|
||||
globals.o: globals.h
|
||||
globals.o: ../fileio/machdr.h
|
||||
globals.o: ../fileio/wrfile.h
|
||||
globals.o: ../fileio/kind.h
|
||||
|
@ -1,230 +0,0 @@
|
||||
CFLAGS = -O $(CF)
|
||||
|
||||
SRCS = macunpack.c \
|
||||
globals.c \
|
||||
macbinary.c \
|
||||
dir.c \
|
||||
mcb.c \
|
||||
bin.c \
|
||||
jdw.c \
|
||||
stf.c \
|
||||
lzc.c \
|
||||
pit.c \
|
||||
sit.c \
|
||||
dia.c \
|
||||
cpt.c \
|
||||
zma.c \
|
||||
lzh.c \
|
||||
dd.c \
|
||||
de_huffman.c \
|
||||
de_compress.c \
|
||||
de_lzah.c \
|
||||
de_lzh.c \
|
||||
crc.c \
|
||||
bits_be.c
|
||||
|
||||
OBJS = macunpack.o \
|
||||
globals.o \
|
||||
macbinary.o \
|
||||
dir.o \
|
||||
mcb.o \
|
||||
bin.o \
|
||||
jdw.o \
|
||||
stf.o \
|
||||
lzc.o \
|
||||
pit.o \
|
||||
sit.o \
|
||||
dia.o \
|
||||
cpt.o \
|
||||
zma.o \
|
||||
lzh.o \
|
||||
dd.o \
|
||||
de_huffman.o \
|
||||
de_compress.o \
|
||||
de_lzah.o \
|
||||
de_lzh.o \
|
||||
crc.o \
|
||||
bits_be.o
|
||||
|
||||
LIB = ../crc/libcrc.a
|
||||
TNAME = ../util/transname
|
||||
UNAME = ../util/util
|
||||
ONAME = ../fileio/wrfile
|
||||
GNAME = ../fileio/fileglob
|
||||
XOBJS = $(TNAME).o $(UNAME).o $(ONAME).o $(GNAME).o
|
||||
XSRCS = $(TNAME).c $(UNAME).c $(ONAME).c $(GNAME).c
|
||||
CRCS = ../crc/arc.c ../crc/binhex.c ../crc/zip.c
|
||||
|
||||
macunpack: $(OBJS) $(LIB) $(XOBJS)
|
||||
$(CC) $(CFLAGS) -o macunpack $(OBJS) $(XOBJS) $(LIB)
|
||||
|
||||
$(LIB): ../crc/makecrc.c
|
||||
(cd ../crc; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(TNAME).o: $(TNAME).c
|
||||
(cd ../util; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(UNAME).o: $(UNAME).c
|
||||
(cd ../util; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(ONAME).o: $(ONAME).c
|
||||
(cd ../fileio; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(GNAME).o: $(GNAME).c
|
||||
(cd ../fileio; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
lint:
|
||||
lint $(CF) $(LFLAGS) $(SRCS) $(XSRCS) $(CRCS)
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
|
||||
clobber:clean
|
||||
rm -f macunpack
|
||||
|
||||
macunpack.o: macunpack.h
|
||||
macunpack.o: globals.h
|
||||
macunpack.o: ../util/patchlevel.h
|
||||
macunpack.o: ../fileio/wrfile.h
|
||||
macunpack.o: ../fileio/wrfileopt.h
|
||||
macunpack.o: ../fileio/kind.h
|
||||
macunpack.o: ../util/util.h
|
||||
globals.o: globals.h
|
||||
globals.o: ../fileio/machdr.h
|
||||
globals.o: ../fileio/wrfile.h
|
||||
globals.o: ../fileio/kind.h
|
||||
macbinary.o: macunpack.h
|
||||
macbinary.o: globals.h
|
||||
macbinary.o: zmahdr.h
|
||||
macbinary.o: ../fileio/machdr.h
|
||||
macbinary.o: ../fileio/wrfile.h
|
||||
macbinary.o: ../fileio/kind.h
|
||||
macbinary.o: ../util/util.h
|
||||
dir.o: globals.h
|
||||
dir.o: ../fileio/machdr.h
|
||||
dir.o: ../fileio/wrfile.h
|
||||
dir.o: ../util/util.h
|
||||
dir.o: ../util/masks.h
|
||||
mcb.o: globals.h
|
||||
mcb.o: ../fileio/machdr.h
|
||||
mcb.o: ../fileio/wrfile.h
|
||||
mcb.o: ../util/masks.h
|
||||
mcb.o: ../util/util.h
|
||||
bin.o: macunpack.h
|
||||
bin.o: globals.h
|
||||
bin.o: ../fileio/machdr.h
|
||||
bin.o: ../fileio/wrfile.h
|
||||
bin.o: ../fileio/kind.h
|
||||
bin.o: ../util/util.h
|
||||
bin.o: ../util/masks.h
|
||||
jdw.o: macunpack.h
|
||||
jdw.o: jdw.h
|
||||
jdw.o: globals.h
|
||||
jdw.o: huffman.h
|
||||
jdw.o: ../fileio/wrfile.h
|
||||
jdw.o: ../fileio/machdr.h
|
||||
jdw.o: ../util/util.h
|
||||
jdw.o: ../util/masks.h
|
||||
stf.o: macunpack.h
|
||||
stf.o: stf.h
|
||||
stf.o: globals.h
|
||||
stf.o: huffman.h
|
||||
stf.o: ../util/curtime.h
|
||||
stf.o: ../fileio/wrfile.h
|
||||
stf.o: ../fileio/machdr.h
|
||||
stf.o: ../util/util.h
|
||||
lzc.o: macunpack.h
|
||||
lzc.o: globals.h
|
||||
lzc.o: lzc.h
|
||||
lzc.o: ../util/util.h
|
||||
lzc.o: ../fileio/machdr.h
|
||||
lzc.o: ../fileio/wrfile.h
|
||||
lzc.o: ../util/masks.h
|
||||
pit.o: macunpack.h
|
||||
pit.o: ../fileio/fileglob.h
|
||||
pit.o: ../fileio/wrfile.h
|
||||
pit.o: ../fileio/kind.h
|
||||
pit.o: globals.h
|
||||
pit.o: pit.h
|
||||
pit.o: ../fileio/machdr.h
|
||||
pit.o: crc.h
|
||||
pit.o: ../util/masks.h
|
||||
pit.o: ../util/util.h
|
||||
pit.o: huffman.h
|
||||
sit.o: macunpack.h
|
||||
sit.o: globals.h
|
||||
sit.o: sit.h
|
||||
sit.o: crc.h
|
||||
sit.o: ../util/util.h
|
||||
sit.o: ../fileio/machdr.h
|
||||
sit.o: ../fileio/wrfile.h
|
||||
sit.o: ../fileio/kind.h
|
||||
sit.o: ../util/masks.h
|
||||
sit.o: huffman.h
|
||||
dia.o: macunpack.h
|
||||
dia.o: globals.h
|
||||
dia.o: dia.h
|
||||
dia.o: ../util/curtime.h
|
||||
dia.o: ../util/masks.h
|
||||
dia.o: ../fileio/machdr.h
|
||||
dia.o: ../fileio/wrfile.h
|
||||
dia.o: ../fileio/kind.h
|
||||
dia.o: ../util/util.h
|
||||
cpt.o: macunpack.h
|
||||
cpt.o: globals.h
|
||||
cpt.o: cpt.h
|
||||
cpt.o: crc.h
|
||||
cpt.o: ../util/util.h
|
||||
cpt.o: ../fileio/machdr.h
|
||||
cpt.o: ../fileio/wrfile.h
|
||||
cpt.o: ../fileio/kind.h
|
||||
cpt.o: ../util/masks.h
|
||||
cpt.o: huffman.h
|
||||
zma.o: macunpack.h
|
||||
zma.o: globals.h
|
||||
zma.o: zma.h
|
||||
zma.o: crc.h
|
||||
zma.o: ../fileio/machdr.h
|
||||
zma.o: ../fileio/wrfile.h
|
||||
zma.o: ../fileio/kind.h
|
||||
zma.o: ../util/masks.h
|
||||
zma.o: ../util/util.h
|
||||
lzh.o: macunpack.h
|
||||
lzh.o: globals.h
|
||||
lzh.o: lzh.h
|
||||
lzh.o: crc.h
|
||||
lzh.o: ../fileio/wrfile.h
|
||||
lzh.o: ../fileio/machdr.h
|
||||
lzh.o: ../util/masks.h
|
||||
lzh.o: ../util/util.h
|
||||
lzh.o: bits_be.h
|
||||
dd.o: macunpack.h
|
||||
dd.o: globals.h
|
||||
dd.o: dd.h
|
||||
dd.o: crc.h
|
||||
dd.o: ../fileio/machdr.h
|
||||
dd.o: ../fileio/wrfile.h
|
||||
dd.o: ../fileio/fileglob.h
|
||||
dd.o: ../util/masks.h
|
||||
dd.o: ../util/util.h
|
||||
de_huffman.o: macunpack.h
|
||||
de_huffman.o: globals.h
|
||||
de_huffman.o: ../util/masks.h
|
||||
de_huffman.o: huffman.h
|
||||
de_huffman.o: ../fileio/wrfile.h
|
||||
de_huffman.o: ../util/util.h
|
||||
de_compress.o: macunpack.h
|
||||
de_compress.o: globals.h
|
||||
de_compress.o: ../fileio/wrfile.h
|
||||
de_lzah.o: macunpack.h
|
||||
de_lzah.o: globals.h
|
||||
de_lzah.o: ../util/masks.h
|
||||
de_lzah.o: ../fileio/wrfile.h
|
||||
de_lzh.o: macunpack.h
|
||||
de_lzh.o: globals.h
|
||||
de_lzh.o: ../util/masks.h
|
||||
de_lzh.o: ../fileio/wrfile.h
|
||||
de_lzh.o: bits_be.h
|
||||
bits_be.o: ../util/masks.h
|
||||
bits_be.o: bits_be.h
|
||||
|
78
makefile
78
makefile
@ -1,78 +0,0 @@
|
||||
BINDIR ?= bin
|
||||
# Use the following flags on the CF macro definition as needed.
|
||||
#
|
||||
# -DBSD if you are on a BSD system
|
||||
#
|
||||
# -DTYPES_H if your system has /usr/include/sys/types.h
|
||||
#
|
||||
# -DDIRENT_H if your system has /usr/include/dirent.h
|
||||
#
|
||||
# -DTERMIOS_H if your system has /usr/include/sys/termios.h
|
||||
#
|
||||
# -DNODOT if you do not want to create files with an initial period
|
||||
#
|
||||
# -DLATIN1 if your system supports LATIN-1 and you want to use it
|
||||
#
|
||||
# Note you can use at most one of the following four!
|
||||
#
|
||||
# -DNOMKDIR if your system does not have the mkdir system call
|
||||
#
|
||||
# -DAUFS if you want to use an AUFS file system
|
||||
#
|
||||
# -DAUFSPLUS if you use CAP 6.0 and want to use times on files
|
||||
#
|
||||
# -DAPPLEDOUBLE if you want to be able to use an AppleDouble file system
|
||||
#
|
||||
CF ?= -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DNODOT -DAPPLEDOUBLE
|
||||
|
||||
all:
|
||||
(cd crc; $(MAKE) CF='$(CF)')
|
||||
(cd util; $(MAKE) CF='$(CF)')
|
||||
(cd fileio; $(MAKE) CF='$(CF)')
|
||||
(cd macunpack; $(MAKE) CF='$(CF)')
|
||||
(cd hexbin; $(MAKE) CF='$(CF)')
|
||||
(cd mixed; $(MAKE) CF='$(CF)')
|
||||
(cd binhex; $(MAKE) CF='$(CF)')
|
||||
(cd comm; $(MAKE) CF='$(CF)')
|
||||
|
||||
clean:
|
||||
(cd crc; $(MAKE) clean)
|
||||
(cd util; $(MAKE) clean)
|
||||
(cd fileio; $(MAKE) clean)
|
||||
(cd macunpack; $(MAKE) clean)
|
||||
(cd hexbin; $(MAKE) clean)
|
||||
(cd mixed; $(MAKE) clean)
|
||||
(cd binhex; $(MAKE) clean)
|
||||
(cd comm; $(MAKE) clean)
|
||||
|
||||
clobber:
|
||||
(cd crc; $(MAKE) clean)
|
||||
(cd util; $(MAKE) clean)
|
||||
(cd fileio; $(MAKE) clean)
|
||||
(cd macunpack; $(MAKE) clobber)
|
||||
(cd hexbin; $(MAKE) clobber)
|
||||
(cd mixed; $(MAKE) clobber)
|
||||
(cd binhex; $(MAKE) clobber)
|
||||
(cd comm; $(MAKE) clobber)
|
||||
|
||||
lint:
|
||||
(cd macunpack; $(MAKE) CF='$(CF)' lint)
|
||||
(cd hexbin; $(MAKE) CF='$(CF)' lint)
|
||||
(cd mixed; $(MAKE) CF='$(CF)' lint)
|
||||
(cd binhex; $(MAKE) CF='$(CF)' lint)
|
||||
(cd comm; $(MAKE) CF='$(CF)' lint)
|
||||
|
||||
install:
|
||||
mkdir -p "$(BINDIR)"
|
||||
install macunpack/macunpack "$(BINDIR)/."
|
||||
install hexbin/hexbin "$(BINDIR)/."
|
||||
install mixed/macsave "$(BINDIR)/."
|
||||
install mixed/macstream "$(BINDIR)/."
|
||||
install binhex/binhex "$(BINDIR)/."
|
||||
install comm/tomac "$(BINDIR)/."
|
||||
install comm/frommac "$(BINDIR)/."
|
||||
|
||||
distr:
|
||||
shar -a README makefile crc util fileio macunpack hexbin mixed binhex \
|
||||
comm doc man >macutil.shar
|
||||
|
87
meson.build
Normal file
87
meson.build
Normal file
@ -0,0 +1,87 @@
|
||||
project('macutils', 'c')
|
||||
# Use the following flags on the CF macro definition as needed.
|
||||
#
|
||||
# -DBSD if you are on a BSD system
|
||||
#
|
||||
# -DTYPES_H if your system has /usr/include/sys/types.h
|
||||
#
|
||||
# -DDIRENT_H if your system has /usr/include/dirent.h
|
||||
#
|
||||
# -DTERMIOS_H if your system has /usr/include/sys/termios.h
|
||||
#
|
||||
# -DNODOT if you do not want to create files with an initial period
|
||||
#
|
||||
# -DLATIN1 if your system supports LATIN-1 and you want to use it
|
||||
#
|
||||
# Note you can use at most one of the following four!
|
||||
#
|
||||
# -DNOMKDIR if your system does not have the mkdir system call
|
||||
#
|
||||
# -DAUFS if you want to use an AUFS file system
|
||||
#
|
||||
# -DAUFSPLUS if you use CAP 6.0 and want to use times on files
|
||||
#
|
||||
# -DAPPLEDOUBLE if you want to be able to use an AppleDouble file system
|
||||
#
|
||||
add_global_arguments([
|
||||
'-DNODOT',
|
||||
'-DAPPLEDOUBLE'],
|
||||
language: 'c')
|
||||
add_global_arguments(['-Wall'], language: 'c')
|
||||
|
||||
compiler = meson.get_compiler('c')
|
||||
|
||||
if compiler.has_header('sys/types.h')
|
||||
add_global_arguments('-DTYPES_H', language: 'c')
|
||||
endif
|
||||
if compiler.has_header('dirent.h')
|
||||
add_global_arguments('-DDIRENT_H', language: 'c')
|
||||
endif
|
||||
if compiler.has_header('sys/termios.h')
|
||||
add_global_arguments('-DTERMIOS_H', language: 'c')
|
||||
endif
|
||||
|
||||
|
||||
# Static libraries
|
||||
|
||||
src_libutil = ['util/backtrans.c', 'util/transname.c', 'util/util.c']
|
||||
src_libfileio = ['fileio/fileglob.c', 'fileio/rdfile.c', 'fileio/wrfile.c']
|
||||
|
||||
libutil = static_library('util', src_libutil)
|
||||
libfileio = static_library('fileio', src_libfileio)
|
||||
|
||||
# CRC
|
||||
makecrc = executable('makecrc', 'crc/makecrc.c', install: false)
|
||||
crc_generated = ['arc.c', 'ccitt.c', 'kermit.c', 'binhex.c', 'ccitt32.c', 'zip.c']
|
||||
|
||||
gen_crc = custom_target('gen-crc',
|
||||
output: crc_generated,
|
||||
command: [makecrc])
|
||||
|
||||
libcrc = static_library('crc', gen_crc, include_directories: 'crc')
|
||||
|
||||
|
||||
# Executables
|
||||
binhex = ['binhex/binhex.c', 'binhex/dofile.c']
|
||||
hexbin = ['hexbin/buffer.c', 'hexbin/crc.c', 'hexbin/dl.c', 'hexbin/globals.c', 'hexbin/hecx.c', 'hexbin/hexbin.c', 'hexbin/hqx.c', 'hexbin/mu.c', 'hexbin/printhdr.c', 'hexbin/readline.c']
|
||||
macunpack = ['macunpack/bin.c', 'macunpack/bits_be.c', 'macunpack/cpt.c', 'macunpack/crc.c', 'macunpack/dd.c', 'macunpack/de_compress.c', 'macunpack/de_huffman.c', 'macunpack/de_lzah.c', 'macunpack/de_lzh.c', 'macunpack/dia.c', 'macunpack/dir.c', 'macunpack/globals.c', 'macunpack/jdw.c', 'macunpack/lzc.c', 'macunpack/lzh.c', 'macunpack/macbinary.c', 'macunpack/macunpack.c', 'macunpack/mcb.c', 'macunpack/pit.c', 'macunpack/sit.c', 'macunpack/stf.c', 'macunpack/zma.c']
|
||||
mixed_macsave = ['mixed/dir.c', 'mixed/globals.c', 'mixed/globals.h', 'mixed/macbinary.c', 'mixed/macsave.c', 'mixed/mcb.c']
|
||||
mixed_macstream = ['mixed/macstream.c']
|
||||
|
||||
executable('binhex', binhex, link_with: [libcrc, libutil, libfileio], install: true)
|
||||
executable('hexbin', hexbin, link_with: [libcrc, libutil, libfileio], install: true)
|
||||
executable('macunpack', macunpack, link_with: [libcrc, libutil, libfileio], install: true)
|
||||
executable('macsave', mixed_macsave, link_with: [libutil, libfileio], install: true)
|
||||
executable('macstream', mixed_macstream, link_with: [libutil, libfileio], install: true)
|
||||
|
||||
src_libcomm = ['comm/globals.c', 'comm/tty.c']
|
||||
libcomm = static_library('comm', src_libcomm)
|
||||
comm_frommac = ['comm/frommac.c', 'comm/xm_from.c', 'comm/ym_from.c', 'comm/zm_from.c']
|
||||
comm_tomac = ['comm/tomac.c', 'comm/xm_to.c', 'comm/ym_to.c', 'comm/zm_to.c']
|
||||
executable('frommac', comm_frommac, link_with: [libcomm, libcrc, libutil, libfileio], install: true)
|
||||
executable('tomac', comm_tomac, link_with: [libcomm, libcrc, libutil, libfileio], install: true)
|
||||
|
||||
# Install
|
||||
|
||||
man_pages = ['man/binhex.1','man/frommac.1','man/hexbin.1','man/macsave.1','man/macstream.1','man/macunpack.1','man/macutil.1','man/tomac.1']
|
||||
install_man(man_pages)
|
@ -1,91 +0,0 @@
|
||||
CFLAGS = -O $(CF)
|
||||
|
||||
SRCS1 = macsave.c \
|
||||
globals.c \
|
||||
macbinary.c \
|
||||
dir.c \
|
||||
mcb.c
|
||||
|
||||
SRCS2 = macstream.c
|
||||
|
||||
OBJS1 = macsave.o \
|
||||
globals.o \
|
||||
macbinary.o \
|
||||
dir.o \
|
||||
mcb.o
|
||||
|
||||
OBJS2 = macstream.o
|
||||
|
||||
TNAME = ../util/transname
|
||||
BNAME = ../util/backtrans
|
||||
UNAME = ../util/util
|
||||
ONAME = ../fileio/wrfile
|
||||
INAME = ../fileio/rdfile
|
||||
GNAME = ../fileio/fileglob
|
||||
XOBJS1= $(TNAME).o $(UNAME).o $(ONAME).o $(GNAME).o
|
||||
XSRCS1= $(TNAME).c $(UNAME).c $(ONAME).c $(GNAME).c
|
||||
XOBJS2= $(TNAME).o $(BNAME).o $(UNAME).o $(INAME).o $(GNAME).o
|
||||
XSRCS2= $(TNAME).c $(BNAME).c $(UNAME).c $(INAME).c $(GNAME).c
|
||||
|
||||
all: macsave macstream
|
||||
touch all
|
||||
|
||||
macsave: $(OBJS1) $(XOBJS1)
|
||||
$(CC) $(CFLAGS) -o macsave $(OBJS1) $(XOBJS1)
|
||||
|
||||
macstream: $(OBJS2) $(XOBJS2)
|
||||
$(CC) $(CFLAGS) -o macstream $(OBJS2) $(XOBJS2)
|
||||
|
||||
$(TNAME).o: $(TNAME).c
|
||||
(cd ../util; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(BNAME).o: $(BNAME).c
|
||||
(cd ../util; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(UNAME).o: $(UNAME).c
|
||||
(cd ../util; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(ONAME).o: $(ONAME).c
|
||||
(cd ../fileio; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(INAME).o: $(INAME).c
|
||||
(cd ../fileio; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
$(GNAME).o: $(GNAME).c
|
||||
(cd ../fileio; make CC=$(CC) CF="$(CF)" )
|
||||
|
||||
lint:
|
||||
lint $(CF) $(LFLAGS) $(SRCS1) $(XSRCS1)
|
||||
lint $(CF) $(LFLAGS) $(SRCS2) $(XSRCS2)
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
|
||||
clobber:clean
|
||||
rm -f all macsave macstream
|
||||
|
||||
macsave.o: globals.h
|
||||
macsave.o: ../util/patchlevel.h
|
||||
macsave.o: ../fileio/wrfile.h
|
||||
macsave.o: ../fileio/wrfileopt.h
|
||||
macsave.o: ../util/util.h
|
||||
globals.o: globals.h
|
||||
globals.o: ../fileio/machdr.h
|
||||
macbinary.o: globals.h
|
||||
macbinary.o: ../fileio/machdr.h
|
||||
macbinary.o: ../fileio/kind.h
|
||||
macbinary.o: ../util/util.h
|
||||
dir.o: globals.h
|
||||
dir.o: ../fileio/machdr.h
|
||||
dir.o: ../fileio/wrfile.h
|
||||
dir.o: ../util/util.h
|
||||
dir.o: ../util/masks.h
|
||||
mcb.o: globals.h
|
||||
mcb.o: ../fileio/machdr.h
|
||||
mcb.o: ../fileio/wrfile.h
|
||||
mcb.o: ../util/masks.h
|
||||
mcb.o: ../util/util.h
|
||||
macstream.o: ../fileio/machdr.h
|
||||
macstream.o: ../fileio/rdfile.h
|
||||
macstream.o: ../fileio/rdfileopt.h
|
||||
macstream.o: ../util/patchlevel.h
|
@ -1,22 +0,0 @@
|
||||
CFLAGS= -O $(CF)
|
||||
|
||||
all: util.o transname.o backtrans.o
|
||||
touch all
|
||||
|
||||
util.o: util.c
|
||||
|
||||
transname.o: transname.c
|
||||
|
||||
backtrans.o: backtrans.c
|
||||
|
||||
clean:
|
||||
-rm -f util.o
|
||||
-rm -f transname.o
|
||||
-rm -f backtrans.o
|
||||
-rm -f all
|
||||
|
||||
util.o: ../fileio/fileglob.h
|
||||
util.o: masks.h
|
||||
util.o: util.h
|
||||
backtrans.o: masks.h
|
||||
|
Loading…
x
Reference in New Issue
Block a user