view 3rdparty/packages/cc/makefile @ 2898:28ed72477814 lwtools-port

Dummy merge of default branch into lwtools hg -y merge --tool=internal:fail default hg revert --all --no-backup --rev . hg resolve -a -m This dummy merge discards any changes from the default branch so that the result is the same as what lwtools already had. When merging back to default branch later, the discarded changes will be discarded there also, so the result will be that the default branch will contain what the lwtools branch had before these merges. Only scripts/burst was "rescued" from default branch.
author Tormod Volden <debian.tormod@gmail.com>
date Sat, 11 Jan 2014 18:40:44 +0100
parents d10dd613b6db 1addfd8c9d5f
children 13885d9433d5
line wrap: on
line source

include ../../../rules.mak

DISK		= cc.dsk
CMDS		= cc1 c.prep c.pass1 c.pass2 c.opt c.asm c.link make

ALLOBJS		= $(CMDS)

# Make all components
all:	banner $(ALLOBJS)

banner:
	@$(ECHO) "**************************************************"
	@$(ECHO) "*                                                *"
	@$(ECHO) "*                    C Compiler                  *"
	@$(ECHO) "*                                                *"
	@$(ECHO) "**************************************************"

# Clean all components
clean:	dskclean
	$(RM) $(ALLOBJS)

dsk:	all
	$(RM) $(DISK)
	$(OS9FORMAT_DS40) -q $(DISK) -n"C Compiler"
	$(MAKDIR) $(DISK),CMDS
	$(MAKDIR) $(DISK),LIB
	$(MAKDIR) $(DISK),DEFS
	$(MAKDIR) $(DISK),SOURCES
	$(MAKDIR) $(DISK),SOURCES/SYS
	$(OS9COPY) $(CMDS) $(DISK),CMDS
	$(OS9ATTR_EXEC) $(foreach file,$(CMDS),$(DISK),CMDS/$(file))
	$(CPL) defs/*.h $(DISK),DEFS
	$(OS9COPY) lib/*.l lib/*.r $(DISK),LIB
	$(CPL) sources/*.c $(DISK),SOURCES
	$(CPL) sources/*.a $(DISK),SOURCES/SYS

dskcopy: dsk
	$(OS9COPY) $(DISK) $(DSKDIR)

dskclean:
	$(RM) $(DISK)

info:
	@$(ECHO) "*** Microware C Compiler ***"
	@$(ECHO) $(DISK)