added .indent.pro to enable indent source code formatting

modified s19header to printout the current header
modified Makefile to build s19header.c in utils directory
This commit is contained in:
Markus Fröschle
2013-11-07 14:46:10 +00:00
parent 3f435ed80e
commit 26a5415e4c
3 changed files with 50 additions and 21 deletions

View File

@@ -28,19 +28,21 @@ CPP=$(TCPREFIX)cpp
OBJCOPY=$(TCPREFIX)objcopy
AR=$(TCPREFIX)ar
RANLIB=$(TCPREFIX)ranlib
NATIVECC=gcc
INCLUDE=-Iinclude
CFLAGS=-mcpu=5474\
-Wall\
-Wall\
-g \
-fomit-frame-pointer\
-ffreestanding\
-fleading-underscore\
-Wa,--register-prefix-optional
-fomit-frame-pointer\
-ffreestanding\
-fleading-underscore\
-Wa,--register-prefix-optional
SRCDIR=sources
TRGTDIRS= ./firebee ./m5484lite
OBJDIRS=$(patsubst %, %/objs,$(TRGTDIRS))
TOOLDIR=util
# Linker control file. The final $(LDCFILE) is intermediate only (preprocessed version of $(LDCSRC)
LDCFILE=bas.lk
@@ -204,6 +206,9 @@ depend: $(ASRCS) $(CSRCS)
do $(CC) $(CFLAGS) $(INCLUDE) -M $(ASRCS) $(CSRCS) | sed -e "s#^\(.*\).o:#$$d/objs/\1.o:#" >> depend; \
done
indent: $(CSRCS)
indent $<
.PHONY: tags
tags:
ctags sources/* include/*
@@ -221,3 +226,7 @@ else ifeq (MACHINE_FIREBEE,$(MACHINE))
MNAME=firebee
endif
tools:
$(NATIVECC) $(INCLUDE) -c $(TOOLDIR)/s19header.c -o $(TOOLDIR)/s19header.o
$(NATIVECC) -o $(TOOLDIR)/s19header $(TOOLDIR)/s19header.o