|   | 
          
            
  
  
  
   
 
 Next: Control Board Main Code,
 Up: Control Board
 Previous: Control Board
     Contents 
 
 
The following GNU Makefile is used to build the firmware image
for the control board.  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 112 System Control Board / 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 board
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 stdlcd.c
	ln -s $(DACSLIB)/SCIserial.c SCIserial.c
	ln -s $(DACSLIB)/SCIserial.h SCIserial.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
board: links buildnum
	$(CC) $(CFLAGS) -oboard.s19 *.c
	mv board.s19 $(S19DIR)
	mv *.o $(OBJDIR)
clean:
	rm -f board.s19 *.o *~ $(S19DIR)/board.s19 $(OBJDIR)/*.o
	rm -f SCIserial.h SCIserial.c pbus.h pbus.c stdlcd.c stdlcd.h
 
  
Steve Richardson
2000-07-06
 | 
Table of Contents
 
 
[Whole document in PDF 1.9MB]
 
 
[more photos and information]
 
 |