Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 501 → Rev 514

/C-OSD/trunk/default/Makefile
35,7 → 35,7
 
 
## Objects that must be built in order to link
OBJECTS = main.o usart1.o max7456_software_spi.o osd_helpers.o config.o spi.o buttons.o ppm.o osd_ncmode_default.o osd_ncmode_minimal.o osd_fcmode_default.o
OBJECTS = main.o usart1.o max7456_software_spi.o osd_helpers.o config.o spi.o buttons.o ppm.o osd_ncmode_default.o osd_ncmode_minimal.o osd_fcmode_default.o characters.o
 
## Objects explicitly added by the user
LINKONLYOBJECTS =
67,15 → 67,18
 
ppm.o: ../ppm.c
$(CC) $(INCLUDES) $(CFLAGS) -c $<
 
osd_ncmode_default.o: ../osd_ncmode_default.c
$(CC) $(INCLUDES) $(CFLAGS) -c $<
 
osd_ncmode_minimal.o: ../osd_ncmode_minimal.c
$(CC) $(INCLUDES) $(CFLAGS) -c $<
 
osd_fcmode_default.o: ../osd_fcmode_default.c
$(CC) $(INCLUDES) $(CFLAGS) -c $<
characters.o: ../characters.c
$(CC) $(INCLUDES) $(CFLAGS) -c $<
 
##Link
$(TARGET): $(OBJECTS)
/C-OSD/trunk/default/dist.sh
1,26 → 1,26
#!/bin/sh
#/****************************************************************************
# * Copyright (C) 2009 by Claas Anders "CaScAdE" Rathje *
# * admiralcascade@gmail.com *
# * Project-URL: http://www.mylifesucks.de/oss/c-osd/ *
# * *
# * This program is free software; you can redistribute it and/or modify *
# * it under the terms of the GNU General Public License as published by *
# * the Free Software Foundation; either version 2 of the License. *
# * *
# * This program is distributed in the hope that it will be useful, *
# * but WITHOUT ANY WARRANTY; without even the implied warranty of *
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
# * GNU General Public License for more details. *
# * *
# * You should have received a copy of the GNU General Public License *
# * along with this program; if not, write to the *
# * Free Software Foundation, Inc., *
# * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
#/****************************************************************************
# * Copyright (C) 2009 by Claas Anders "CaScAdE" Rathje *
# * admiralcascade@gmail.com *
# * Project-URL: http://www.mylifesucks.de/oss/c-osd/ *
# * *
# * This program is free software; you can redistribute it and/or modify *
# * it under the terms of the GNU General Public License as published by *
# * the Free Software Foundation; either version 2 of the License. *
# * *
# * This program is distributed in the hope that it will be useful, *
# * but WITHOUT ANY WARRANTY; without even the implied warranty of *
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
# * GNU General Public License for more details. *
# * *
# * You should have received a copy of the GNU General Public License *
# * along with this program; if not, write to the *
# * Free Software Foundation, Inc., *
# * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
# ****************************************************************************/
 
DATE=`date +%Y%m%d-%H%M`
DATE="20090604-1350"
#DATE="20090604-1350"
REVISION=`svn info .. | awk '$1 == "Revision:" {print $2}'`
 
#NCMODES=`find ../ -name osd_ncmode_\*.c| sed 's/..\///g'`
29,7 → 29,7
# build all the NCMODE files
#for CURRMODE in $NCMODES; do
# CURRSHORTMODE=`echo $CURRMODE | sed -e 's/osd_ncmode_//g' -e 's/.c//g'`
#
#
# # build pal hex
# export CFLAGS="-DBUILDDATE=\\\"${DATE}\\\" -DOSD_NCMODE=\\\"${CURRMODE}\\\""
# make clean
85,24 → 85,21
mv C-OSD.hex C-OSD-${DATE}-ntsc-fconly.hex
 
 
# buil all character files
CHARFILES="112 128 136 144 152 160 168 176 184 192 200 208 216 224 232"
for i in $CHARFILES; do
TILL=`echo $i + 7 | bc`
# buil character files
# PAL
make clean
export CFLAGS="-DWRITECHARS=1 -DBUILDDATE=\\\"${DATE}\\\" "
make
mv C-OSD.hex C-OSD-characters-pal.hex
 
# PAL
make clean
export CFLAGS="-DWRITECHARS=${i} -DBUILDDATE=\\\"${DATE}\\\" "
make
mv C-OSD.hex C-OSD-characters-${i}-${TILL}-pal.hex
# and NTSC as well
make clean
export CFLAGS="-DNTSC=1 -DWRITECHARS=1 -DBUILDDATE=\\\"${DATE}\\\" "
make
mv C-OSD.hex C-OSD-characters-ntsc.hex
 
# and NTSC ones as well
make clean
export CFLAGS="-DNTSC=1 -DWRITECHARS=${i} -DBUILDDATE=\\\"${DATE}\\\" "
make
mv C-OSD.hex C-OSD-characters-${i}-${TILL}-ntsc.hex
done
 
 
# clean up
make clean