################################################################################ ## TT8.MAK -- General Tattletale Model 8 makefile template (Aztec C PC Version) ## ## Copyright 1994 ONSET Computer Corp. All rights reserved. ## ## Saturday, April 30, 1994 --mah/jhg ## ## This makefile generates S record hex files for both testing in RAM (.RHX) ## and burnable applications for flash EEPROM (.AHX) from a command line ## invocation, or can be used as a template for new projects by filling in ## the blank macros at the top of this file. ## ## Usage: ## make -f \tt8\bin\tt8.mak MAIN=mymain 1=myoth1 2=myoth2 ## or: ## make (if you've modified and copied this to a project directory) ## Notes: ## 1. The intermediate object files generated by this makefile have the ## name of the c source file with no extension. This allows the simple ## command line calling sequence, but is different from the convention of ## appending .r to the object filename. ## ## 2. Debugging information is only generated for the RAM modules. ## ## 3. The intermediate CPM68K binary load files (.RUN and .APP) are ## used by the remote debugger and possibly other future load tools. ## ## Tuesday, July 19, 1994 --jhg/glb ## modified copy/delete to delete/rename for pre dos 6 ## add -so (all optimizations) ## ## Thursday, August 24, 1995 --jhg/tam ## add -wp options to force warning messages if no prototype declared. ################################################################################ MAIN=ISZ 1=izm.r 2=io_zmod.r OBJ =$(MAIN).r $(1) $(2) LIB =-ltt8 -lml16tt8 -lcl16tt8 #### Compiler options # -ps 16 bit integers # -mc Large code model # -md Large data model # -sm Adds __C_MACROS__ definition # -bs Generate debugger information # -qq Inhibit compiler signon message # -so Perform full optimization # -wp generate a warning if a function is called when its prototype is not visible # #### Linker options # +c Start of code segment # +d Start of initialized data segment # (default, if not given, is right after code segment) # +j Top of stack # +s Stack size in hex # -g Generate debugger information # +q Quiet, don't list modules # -m Inhibit symbol override warnings # -t Generate ASCII symbol table file # #### S-Record generator options # -p rom size in kilobytes (large to generate only one s-record) # -a Address field size 3 bytes # -b Hex Byte offset #### Compiler options #CCOPTS = -ps -mc -md -bs -qq -so -wp -wq .c.r: @erase aztecc.err c68 -o $*.r $*.c # c68 $(CCOPTS) -o $*.r $*.c # c68 $(CCOPTS) -at $*.c #Link and Generate hex files lib: $(MAIN).lib #### Make Library of modules $(MAIN).lib: $(OBJ) lb68 $(MAIN).lib $(OBJ) echo off del zmodem.lib ren $(MAIN).lib zmodem.lib clean: @erase $(MAIN).app @erase $(MAIN).ahx @erase $(MAIN).sym @erase $(MAIN).run @erase $(MAIN).rhx @erase $(MAIN).dbg @erase $(MAIN).r @erase $(MAIN).a