# time_clock Makefile # # $Id: Makefile,v 1.8 2002/08/02 20:05:07 tomdean Exp $ # # setup for the m6811-elf-gcc development environment # SRCDIR=. BASEDIR=$(SRCDIR)/.. # if defined, no frame pointer - keep this, for now # NO_FP=1 LIST=1 MAP=1 # select the board for config files # BOARD=adapt-11c75 BOARD=adapt-11c24 include $(BASEDIR)/config/make.defs OPT += -msoft-reg-count=12 # These should not be used in the eeprom version. LIBUTIL=../lib/libutil.a LIBEEPROM=../lib/libeeprom.a LIBS += $(LIBUTIL) -lg $(LIBEEPROM) SRC = os.c main.c rti.c swi.c sci.c \ task1.c task2.c adc.c gps.c task5.c cli.c task7.c display.c # task1 task2 task3 task4 task5 task6 task7 task8 INC = os.h OBJ=${SRC:.c=.o} # for testing, need three commands... all:: clean os.s19 run #all:: os.s19 os.elf: ${OBJ} run: os.s19 ../../bin/execute -p /dev/cuaa1 os.s19 dump: os.elf m6811-elf-objdump --source -dSx os.elf id: grep Id Makefile *.[ch] | sed -e 's/\*//' -e 's/\#//' -e 's/\$$Id\://' -e 's/Exp \$$//' -e 's/\://' | sort tags: etags *.[ch] ../include/* ../include/sys/* ../include/asm-m68hc11/* # need to over-ride the .o.elf in make.defs to include all obj files .o.elf: $(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS) $(LISTING) -o $@ ${OBJ} $(LIBS) # the full document consists of os.doc and source files, with line numbers os_doc: rm -f doc/document pr -o3 -F -h Os -h "OS Operating Manual" doc/os.doc > doc/document grep Id *.[ch] Makefile | pr -o3 -F -h Os -h "File Versions" >> doc/document pr -n3 -o3 -F ${SRC} ${INC} >> doc/document