view 3rdparty/packages/cc/makefile @ 2849:84d9d5765057 lwtools-port

Makefiles: Call OS9ATTR with multiple files (part 2/2) These were all done with a sed -i line, but have been manually verified.
author Tormod Volden <debian.tormod@gmail.com>
date Fri, 12 Jul 2013 01:01:17 +0200
parents 918c7c68ea4d
children 84d284e812cd
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
	$(CP) $(CMDS) $(DISK),CMDS
	$(OS9ATTR_EXEC) $(foreach file,$(CMDS),$(DISK),CMDS/$(file))
	$(CPL) defs/*.h $(DISK),DEFS
	$(CP) lib/*.l LIB/*.r $(DISK),LIB
	$(CPL) sources/*.c $(DISK),SOURCES
	$(CPL) sources/*.a $(DISK),SOURCES/SYS

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

dskclean:
	$(RM) $(DISK)

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