File pdisk.makefile-gcc.patch of Package pdisk
makefile | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
Index: pdisk/makefile
===================================================================
--- pdisk.orig/makefile
+++ pdisk/makefile
@@ -129,17 +129,18 @@ MAC_68KBINARY= \
pdisk_68k.hqx
-CFLAGS = -Wall
+CC = gcc
+CFLAGS = -Wall -O1 -g --save-temps -D_FILE_OFFSET_BITS=64
DIST_TAR_FLAGS = cvf
all: $(UNIX_BINARIES)
pdisk: $(UNIX_OBJECTS)
- cc -o pdisk $(UNIX_OBJECTS)
+ $(CC) -o pdisk $(UNIX_OBJECTS)
cvt_pt: $(CVT_OBJECTS)
- cc -o cvt_pt $(CVT_OBJECTS)
+ $(CC) -o cvt_pt $(CVT_OBJECTS)
tags: $(MAC_SOURCE) $(UNIX_SOURCE)
ctags $(MAC_SOURCE) $(UNIX_SOURCE)
@@ -147,8 +148,8 @@ tags: $(MAC_SOURCE) $(UNIX_SOURCE)
clean:
rm -f *.o $(UNIX_BINARIES) list.src
-clobber: clean
- rm -f $(ALL_FILES) $(MAC_BINARY) $(MAC_68KBINARY) tags
+spotless: clean
+ rm -f $(MAC_BINARY) $(MAC_68KBINARY) tags
# note the sed to reinsert the spaces in the Mac names
list.src: $(MAC_SOURCE) $(DOCS) $(UNIX_SOURCE) $(MAC_PROJECT)