prefect
Home Engineering Publications
DACS: Firmware Build, Makefile
 
  next up previous contents
Next: Mixer Unit Main Code, Up: Mixer Unit Previous: Mixer Unit   Contents

Firmware Build, Makefile

The following GNU Makefile is used to build the firmware image for the mixer unit. A standard Motorola S19 file is produced when the files are built. This image can be downloaded to the EEPROM on the embedded microcontroller board using special software.
##############################################################################
# DACS : Distributed Audio Control System
# Model 411 Modular Automated Audio Mixer / Firmware Build File
#
# The code, executables, documentation, firmware images, and all related
# material of DACS are  
# Copyright (C) 1997 Stephen S. Richardson - ALL RIGHTS RESERVED
##############################################################################

CC = icc11
CFLAGS = 
PROGS = links mixer
MAINDIR = .
S19DIR = $(MAINDIR)/s19
OBJDIR = $(MAINDIR)/obj
DACSLIB = ../dacslib

all: $(PROGS)

#
# set up links to DACSlib files, since icc11 3.6 can't do what i want..
# remember to change this if 'local' copies of the lib funcs are used
# (so they don't get overwritten)
# also change the make clean stuff if locals are used.
#
links: 
	rm -f SCIserial.h SCIserial.c pbus.h pbus.c stdlcd.h
	rm -f stdlcd.c ACIAserial.c ACIAserial.h
	ln -s $(DACSLIB)/SCIserial.c SCIserial.c
	ln -s $(DACSLIB)/SCIserial.h SCIserial.h
	ln -s $(DACSLIB)/ACIAserial.c ACIAserial.c
	ln -s $(DACSLIB)/ACIAserial.h ACIAserial.h
	ln -s $(DACSLIB)/pbus.c pbus.c
	ln -s $(DACSLIB)/pbus.h pbus.h
	ln -s $(DACSLIB)/stdlcd.c stdlcd.c
	ln -s $(DACSLIB)/stdlcd.h stdlcd.h

buildnum:
	./buildnum.pl

mixer: links buildnum
	$(CC) $(CFLAGS) -omixer.s19 *.c -D_MIXER
	cp mixer.s19 /tmp
	chmod a+r /tmp/mixer.s19
	mv mixer.s19 $(S19DIR)
	mv *.o $(OBJDIR)

clean:
	rm -f mixer.s19 *.o *~ $(S19DIR)/mixer.s19 $(OBJDIR)/*.o
	rm -f SCIserial.h SCIserial.c pbus.h pbus.c


Steve Richardson 2000-07-06
Table of Contents

[PDF] [Whole document in PDF 1.9MB]

[more photos and information]

 
Page last modified:
Copyright © 1993-2000 prefect - All Rights Reserved.