mirror of
https://github.com/fadden/ciderpress.git
synced 2024-12-11 07:51:15 +00:00
8e910b23ca
Many updates to format strings, largely as a result of changing various "long" variables to uint32_t. Fixed the diskimg debug macros for gcc, which requires an extra "##" to remove the "," when there are no arguments. (Apparently Visual Studio just strips this away for you.) Stripped out a couple of dead variables spotted by gcc. Return the actual error in a couple of HFS file functions.
50 lines
1.4 KiB
Makefile
50 lines
1.4 KiB
Makefile
#
|
|
# DiskImg makefile for Linux.
|
|
#
|
|
SHELL = /bin/sh
|
|
CC = gcc
|
|
CXX = g++
|
|
AR = ar
|
|
OPT = -g -D_DEBUG
|
|
#-DEXCISE_GPL_CODE
|
|
#OPT = -g -O2
|
|
GCC_FLAGS = -Wall -Wwrite-strings -Wpointer-arith -Wshadow
|
|
# -Wstrict-prototypes
|
|
CXXFLAGS = $(OPT) $(GCC_FLAGS) -D_FILE_OFFSET_BITS=64
|
|
|
|
SRCS = ASPI.cpp CFFA.cpp Container.cpp CPM.cpp DDD.cpp DiskFS.cpp \
|
|
DiskImg.cpp DIUtil.cpp DOS33.cpp DOSImage.cpp FAT.cpp FDI.cpp \
|
|
FocusDrive.cpp \GenericFD.cpp Global.cpp Gutenberg.cpp HFS.cpp \
|
|
ImageWrapper.cpp MacPart.cpp MicroDrive.cpp Nibble.cpp \
|
|
Nibble35.cpp OuterWrapper.cpp OzDOS.cpp Pascal.cpp ProDOS.cpp \
|
|
RDOS.cpp TwoImg.cpp UNIDOS.cpp VolumeUsage.cpp Win32BlockIO.cpp
|
|
OBJS = ASPI.o CFFA.o Container.o CPM.o DDD.o DiskFS.o \
|
|
DiskImg.o DIUtil.o DOS33.o DOSImage.o FDI.o \
|
|
FocusDrive.o FAT.o GenericFD.o Global.o Gutenberg.o HFS.o \
|
|
ImageWrapper.o MacPart.o MicroDrive.o Nibble.o \
|
|
Nibble35.o OuterWrapper.o OzDOS.o Pascal.o ProDOS.o \
|
|
RDOS.o TwoImg.o UNIDOS.o VolumeUsage.o Win32BlockIO.o
|
|
|
|
STATIC_PRODUCT = libdiskimg.a
|
|
PRODUCT = $(STATIC_PRODUCT)
|
|
|
|
all: $(PRODUCT)
|
|
@true
|
|
|
|
$(STATIC_PRODUCT): $(OBJS)
|
|
-rm -f $(STATIC_PRODUCT)
|
|
$(AR) rcv $@ $(OBJS)
|
|
|
|
clean:
|
|
-rm -f *.o core
|
|
-rm -f $(STATIC_PRODUCT)
|
|
-rm -f Makefile.bak
|
|
|
|
tags::
|
|
@ctags -R --totals *
|
|
|
|
depend:
|
|
makedepend -- $(CFLAGS) -- $(SRCS)
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|