1 # Makefile for SAS/C 6.51
5 # Add the switch DEFINE=NDEBUG to CFLAGS in order to disable the
9 SC $(CFLAGS) $(CPU) $(DEBUGOPT) $(DEBUG) $(OPTIMIZE) $*.c
11 CFLAGS = MCCONS STREQ STRMERGE NOSTKCHK UTILLIB PARM=R
12 LFLAGS = SC SD NOICONS NODEBUG
16 OPTIMIZE = OPTIMIZE OPTINLOCAL OPTTIME
19 LIBS = LIB:sc.lib LIB:amiga.lib LIB:debug.lib
20 OBJ1 = device.o volumes.o generic.o intui.o cdrom.o iso9660.o rock.o \
21 devsupp.o hfs.o path.o
22 OBJ2 = cdrom.o generic.o iso9660.o rock.o main.o hfs.o path.o
24 OBJ4 = checkcd.o cdrom.o iso9660.o rock.o generic.o hfs.o path.o
26 all: cdrom-handler cdrom cdcontrol checkcd
28 cdrom-handler: $(OBJ1)
29 SLINK $(OBJ1) TO $@ LIB $(LIBS) $(LFLAGS)
33 SC LINK TO $@ $(OBJ2) LIB $(LIBS) $(DEBUGOPT) NOICONS
36 SLINK LIB:c.o $(OBJ3) TO $@ LIB $(LIBS) $(LFLAGS) NOICONS
39 SC LINK TO $@ $(OBJ4) $(DEBUGOPT) NOICONS
42 rm -f *.o *.lnk *.dbg cdrom-handler cdrom cdcontrol checkcd
46 rm -f /l/cdrom-handler /c/cdrom /c/checkcd /c/cdcontrol
47 rename cdrom-handler /l/cdrom-handler
49 rename checkcd /c/checkcd
50 rename cdcontrol /c/cdcontrol