Timothe Litt 886c1fae06 Preliminary merge with Baker + other changes
Many style/formatting edits.

Bug fixes.

Reverted some previous changes temporarily while reviewing new code.

Merged Baker's "virtual device" in a simpler form.  ODS2 will assign a sensible
drive name when mounting /image (== /virtual).  If a specific drive name
is desired, mount /image drivename=filespec.

Files can be quoted, or use set qualifier_style unix if slashes are a problem.
Note that mount on the command line allows tab completion.

Moved "statistics" command into show.

Coded support for import/binary (fixed records, 512 bytes).

Converted fgets to fgetline

Added show devices for Unix (limited by standard APIs)

Got rid of separate ODS2-Image build.
2016-03-05 01:27:56 -05:00

90 lines
2.2 KiB
Plaintext

# Generic makefile for ods2
#
# See makefile.<osname>, which normally includes it
#
# If your make doesn't support include, these can be
# specified manually, for example:
# make CC=gcc "CCFLAGS=-O4 -f" OBJ=.o \
# PHYSIO=phyunix DEFS=-DUSE_READLINE LDFLAGS=-lreadline
#
# or just combine the files you need with an editor.
#
# ###
# OS-Specific defines
# These variables are available
# Other defines = "-DDEBUG_BUILD" "-D_FILE_OFFSET_BITS=32"
#DEFS =
# Libraries, e.g. -lreadline
#LDFLAGS =
# Object file suffix
#OBJ = .o
# Physical IO module
#PHYSIO = phyunix
# Extra physical IO headers
#PHYSIOH =
# #####################################################
all : ods2
OBJS = $(ODS2_OBJS)
COMMON_OBJS = \
access$(OBJ) \
cache$(OBJ) \
compat$(OBJ)\
device$(OBJ) \
direct$(OBJ) \
phyvirt$(OBJ) \
rms$(OBJ) \
sysmsg$(OBJ) \
update$(OBJ) \
vmstime$(OBJ)
ODS2_OBJS = ods2$(OBJ) $(COMMON_OBJS) $(PHYSIO)$(OBJ)
ods2 : $(ODS2_OBJS) $(LIBS)
$(CC) $(CCFLAGS) -o ods2 $(ODS2_OBJS) $(LDFLAGS)
access$(OBJ) : access.c ssdef.h access.h phyio.h compat.h sysmsg.h phyvirt.h
$(CC) -c $(CCFLAGS) $(DEFS) access.c
cache$(OBJ) : cache.c cache.h ssdef.h
$(CC) -c $(CCFLAGS) $(DEFS) cache.c
compat$(OBJ) : compat.c compat.h
$(CC) -c $(CCFLAGS) $(DEFS) compat.c
device$(OBJ) : device.c ssdef.h access.h phyio.h
$(CC) -c $(CCFLAGS) $(DEFS) device.c
direct$(OBJ) : direct.c direct.h access.h fibdef.h descrip.h ssdef.h
$(CC) -c $(CCFLAGS) $(DEFS) direct.c
ods2$(OBJ) : ods2.c compat.h sysmsg.h phyio.h ssdef.h descrip.h access.h rms.h version.h
$(CC) -c $(CCFLAGS) $(VERSION) $(DEFS) ods2.c
$(PHYSIO)$(OBJ) : $(PHYSIO).c phyio.h phyvirt.h ssdef.h compat.h $(PHYSIOH)
$(CC) -c $(CCFLAGS) $(DEFS) $(PHYSIO).c
phyvirt$(OBJ) : phyvirt.c phyvirt.h compat.h ssdef.h
$(CC) -c $(CCFLAGS) $(DEFS) phyvirt.c
rms$(OBJ) : rms.c rms.h compat.h direct.h access.h fibdef.h descrip.h ssdef.h
$(CC) -c $(CCFLAGS) $(DEFS) rms.c
sysmsg$(OBJ) : sysmsg.c sysmsg.h rms.h ssdef.h
$(CC) -c $(CCFLAGS) $(DEFS) sysmsg.c
update$(OBJ) : update.c ssdef.h access.h
$(CC) -c $(CCFLAGS) $(DEFS) update.c
vmstime$(OBJ) : vmstime.c vmstime.h
$(CC) -c $(CCFLAGS) $(DEFS) vmstime.c