# HG changeset patch # User boisy # Date 1042748153 0 # Node ID f3670cfbf02576cddbadd8351636523b70dce1a2 # Parent 0198655f255207ba2193d21289618284685456de Added more intelligence to making DSK image diff -r 0198655f2552 -r f3670cfbf025 3rdparty/packages/cc/makefile --- a/3rdparty/packages/cc/makefile Thu Jan 16 19:54:21 2003 +0000 +++ b/3rdparty/packages/cc/makefile Thu Jan 16 20:15:53 2003 +0000 @@ -1,18 +1,37 @@ include ../../../Makefile.rules -DEPENDS = ./Makefile +DISK = cc.dsk +CMDS = cc1 c.prep c.pass1 c.pass2 c.opt c.asm c.link -CMDS = c.prep -ALLOBJS = $(CMDS) +# Make all components +all: $(CMDS) + @$(ECHO) "*********************************************" + @$(ECHO) "* *" + @$(ECHO) "* C Compiler *" + @$(ECHO) "* *" + @$(ECHO) "*********************************************" + -$(CD) SOURCES; $(UNIX2OS9) *.a *.c + -$(CD) DEFS; $(UNIX2OS9) *.h -all: $(ALLOBJS) - $(CHMOD) 755 $(ALLOBJS) +# Clean all components +clean: dskclean + -$(CD) SOURCES; $(OS92UNIX) *.a *.c + -$(CD) DEFS; $(OS92UNIX) *.h -clean: - $(RM) $(ALLOBJS) +dsk: all + $(RM) $(DISK) + $(OS9FORMAT) $(DISK) -t40 -h2 -n"C Compiler" + $(MAKDIR) $(DISK),CMDS + $(MAKDIR) $(DISK),LIB + $(MAKDIR) $(DISK),DEFS + $(MAKDIR) $(DISK),SOURCES + $(MAKDIR) $(DISK),SOURCES/SYS + $(CP) $(CMDS) $(DISK),CMDS + $(CP) DEFS/*.h $(DISK),DEFS + $(CP) LIB/*.l LIB/*.r $(DISK),LIB + $(CP) SOURCES/*.c $(DISK),SOURCES + $(CP) SOURCES/*.a $(DISK),SOURCES/SYS -identify: - $(IDENT_SHORT) $(ALLOBJS) +dskclean: + -$(RM) $(DISK) -showallobjs: - @$(ECHO) $(ALLOBJS)