Browse Source

moving source files to dedicated directory

feature/2015
Christian Kroll 11 years ago
parent
commit
55505c08a6
  1. 64
      .gitignore
  2. 4
      Doxyfile
  3. 79
      Makefile
  4. 13
      can/Makefile
  5. 16
      config.in
  6. 26
      defaults.mk
  7. 10
      games/breakout/Makefile
  8. 22
      games/games.mk
  9. 8
      games/snake/Makefile
  10. 8
      games/space_invaders/Makefile
  11. 0
      ld_scripts/avr5.x
  12. 0
      ld_scripts/avr51.x
  13. 0
      ld_scripts/elf_i386.x
  14. 0
      ld_scripts/elf_i386_fbsd.x
  15. 0
      ld_scripts/elf_x86_64.x
  16. 0
      ld_scripts/elf_x86_64_fbsd.x
  17. 0
      ld_scripts/i386pe.x
  18. 0
      ld_scripts/i386pep.x
  19. 9
      menu/Makefile
  20. 8
      rfm12/Makefile
  21. 11
      rules.mk
  22. 2
      scripts/Menuconfig
  23. 10
      scrolltext/Makefile
  24. 9
      src/animations/Makefile
  25. 8
      src/animations/bitmapscroller/Makefile
  26. 0
      src/animations/bitmapscroller/amphibian.c
  27. 0
      src/animations/bitmapscroller/amphibian.h
  28. 0
      src/animations/bitmapscroller/bitmapscroller.c
  29. 0
      src/animations/bitmapscroller/bitmapscroller.h
  30. 0
      src/animations/bitmapscroller/config.in
  31. 0
      src/animations/bitmapscroller/fairydust.c
  32. 0
      src/animations/bitmapscroller/fairydust.h
  33. 0
      src/animations/bitmapscroller/laborlogo.c
  34. 0
      src/animations/bitmapscroller/laborlogo.h
  35. 0
      src/animations/bitmapscroller/outofspec.c
  36. 0
      src/animations/bitmapscroller/outofspec.h
  37. 0
      src/animations/blackhole.c
  38. 0
      src/animations/blackhole.h
  39. 0
      src/animations/borg_time.c
  40. 0
      src/animations/borg_time.h
  41. 0
      src/animations/breakout_demo.c
  42. 0
      src/animations/breakout_demo.h
  43. 2
      src/animations/config.in
  44. 0
      src/animations/flyingdots.c
  45. 0
      src/animations/flyingdots.h
  46. 0
      src/animations/fpmath_patterns.c
  47. 0
      src/animations/fpmath_patterns.h
  48. 0
      src/animations/gameoflife.c
  49. 0
      src/animations/gameoflife.h
  50. 0
      src/animations/ltn_ant.c
  51. 0
      src/animations/ltn_ant.h
  52. 0
      src/animations/matrix.c
  53. 0
      src/animations/matrix.h
  54. 0
      src/animations/mherweg.c
  55. 0
      src/animations/mherweg.h
  56. 0
      src/animations/program.c
  57. 0
      src/animations/program.h
  58. 0
      src/animations/snake.c
  59. 0
      src/animations/snake.h
  60. 0
      src/animations/squares.c
  61. 0
      src/animations/squares.h
  62. 0
      src/animations/stonefly.c
  63. 0
      src/animations/stonefly.h
  64. 9
      src/borg_hw/Makefile
  65. 0
      src/borg_hw/borg_hw.h
  66. 0
      src/borg_hw/borg_hw_ancient.c
  67. 0
      src/borg_hw/borg_hw_andreborg.c
  68. 0
      src/borg_hw/borg_hw_borg16.c
  69. 0
      src/borg_hw/borg_hw_borg16_hgmod.c
  70. 0
      src/borg_hw/borg_hw_borg_ls.c
  71. 0
      src/borg_hw/borg_hw_borg_lsjo.c
  72. 0
      src/borg_hw/borg_hw_borg_mh.c
  73. 0
      src/borg_hw/borg_hw_borg_mini.c
  74. 0
      src/borg_hw/borg_hw_gigaborg.c
  75. 0
      src/borg_hw/borg_hw_ledbrett.c
  76. 0
      src/borg_hw/borg_hw_panel_one.c
  77. 0
      src/borg_hw/borg_hw_pd1165.c
  78. 0
      src/borg_hw/borg_hw_pingpong.c
  79. 0
      src/borg_hw/borg_hw_rotor.c
  80. 28
      src/borg_hw/config.in
  81. 0
      src/borg_hw/config_ancient.in
  82. 0
      src/borg_hw/config_andreborg.in
  83. 0
      src/borg_hw/config_borg16.in
  84. 0
      src/borg_hw/config_borg16_hgmod.in
  85. 0
      src/borg_hw/config_borg_ls.in
  86. 0
      src/borg_hw/config_borg_lsjo.in
  87. 0
      src/borg_hw/config_borg_mh.in
  88. 0
      src/borg_hw/config_borg_mini.in
  89. 0
      src/borg_hw/config_gigaborg.in
  90. 0
      src/borg_hw/config_ledbrett.in
  91. 0
      src/borg_hw/config_panel_one.in
  92. 0
      src/borg_hw/config_pd1165.in
  93. 0
      src/borg_hw/config_pingpong.in
  94. 0
      src/borg_hw/config_rotor.in
  95. 16
      src/can/Makefile
  96. 0
      src/can/borg_can.c
  97. 0
      src/can/borg_can.h
  98. 0
      src/can/can.c
  99. 0
      src/can/can.h
  100. 0
      src/can/config.in

64
.gitignore

@ -7,27 +7,12 @@
.settings
.simulated_eeprom.bin
.subdirs
animations/bitmapscroller/obj_avr
animations/bitmapscroller/obj_sim
animations/obj_avr
animations/obj_sim
autoconf.h
borg_hw/obj_avr
borgsim
borgsim.exe
can/obj_avr
can/obj_sim
config.mk
games/breakout/obj_avr
games/breakout/obj_sim
games/snake/obj_avr
games/snake/obj_sim
games/space_invaders/obj_avr
games/space_invaders/obj_sim
games/tetris/obj_avr
games/tetris/obj_sim
docs/html
docs/latex
gmon.out
html
image
image.bin
image.elf
@ -38,23 +23,38 @@ image.srec
image_eeprom.bin
image_eeprom.hex
image_eeprom.srec
joystick/obj_avr
joystick/obj_sim
latex
menu/obj_avr
menu/obj_sim
obj_avr
obj_sim
random/obj_avr
random/obj_sim
rfm12/obj_avr
rfm12/obj_sim
scripts/lxdialog/*.o
scripts/lxdialog/a.exe
scripts/lxdialog/lxdialog
scripts/lxdialog/lxdialog.exe
scripts/lxdialog/*.o
scrolltext/obj_avr
scrolltext/obj_sim
simulator/obj_sim
smallani/obj_avr
smallani/obj_sim
src/animations/bitmapscroller/obj_avr
src/animations/bitmapscroller/obj_sim
src/animations/obj_avr
src/animations/obj_sim
src/autoconf.h
src/borg_hw/obj_avr
src/can/obj_avr
src/can/obj_sim
src/games/breakout/obj_avr
src/games/breakout/obj_sim
src/games/snake/obj_avr
src/games/snake/obj_sim
src/games/space_invaders/obj_avr
src/games/space_invaders/obj_sim
src/games/tetris/obj_avr
src/games/tetris/obj_sim
src/joystick/obj_avr
src/joystick/obj_sim
src/menu/obj_avr
src/menu/obj_sim
src/random/obj_avr
src/random/obj_sim
src/rfm12/obj_avr
src/rfm12/obj_sim
src/scrolltext/obj_avr
src/scrolltext/obj_sim
src/simulator/obj_sim
src/smallani/obj_avr
src/smallani/obj_sim

4
Doxyfile

@ -52,7 +52,7 @@ PROJECT_LOGO =
# If a relative path is entered, it will be relative to the location
# where doxygen was started. If left blank the current directory will be used.
OUTPUT_DIRECTORY =
OUTPUT_DIRECTORY = docs
# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
# 4096 sub-directories (in 2 levels) under the output directory of each output
@ -647,7 +647,7 @@ WARN_LOGFILE =
# directories like "/usr/src/myproject". Separate the files or directories
# with spaces.
INPUT =
INPUT = src
# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is

79
Makefile

@ -1,17 +1,18 @@
TARGET := image
TARGET_SIM := borgsim
TOPDIR = .
TOPDIR = src
MAKETOPDIR = .
SRC = \
main.c \
display_loop.c \
eeprom_reserve.c \
pixel.c \
util.c \
$(TOPDIR)/main.c \
$(TOPDIR)/display_loop.c \
$(TOPDIR)/eeprom_reserve.c \
$(TOPDIR)/pixel.c \
$(TOPDIR)/util.c \
SRC_SIM = \
display_loop.c \
pixel.c \
$(TOPDIR)/display_loop.c \
$(TOPDIR)/pixel.c \
LAUNCH_BOOTLOADER = launch-bootloader
@ -24,26 +25,26 @@ all: compile-$(TARGET)
@echo "==============================="
@echo "$(TARGET) compiled for: $(MCU)"
@echo "size is: "
@$(CONFIG_SHELL) ${TOPDIR}/scripts/size $(TARGET)
@$(CONFIG_SHELL) scripts/size $(TARGET)
@echo "==============================="
##############################################################################
# generic fluff
include defaults.mk
#include $(TOPDIR)/rules.mk
include $(MAKETOPDIR)/defaults.mk
#include $(MAKETOPDIR)/rules.mk
##############################################################################
# generate SUBDIRS variable
#
.subdirs: autoconf.h
.subdirs: $(TOPDIR)/autoconf.h
@ echo "checking in which subdirs to build"
@ $(RM) -f $@
@ echo "SUBDIRS += animations" >> $@
@ echo "SUBDIRS += animations/bitmapscroller" >> $@
@ echo "SUBDIRS += smallani" >> $@
@ (for subdir in `grep -e "^#define .*_SUPPORT" autoconf.h \
| sed -e "s/^#define //" -e "s/_SUPPORT.*//" \
@ echo "SUBDIRS += $(TOPDIR)/animations" >> $@
@ echo "SUBDIRS += $(TOPDIR)/animations/bitmapscroller" >> $@
@ echo "SUBDIRS += $(TOPDIR)/smallani" >> $@
@ (for subdir in `grep -e "^#define .*_SUPPORT" $(TOPDIR)/autoconf.h \
| sed -e "s/^#define /$(TOPDIR)\//" -e "s/_SUPPORT.*//" \
| tr "[A-Z]\\n" "[a-z] " `; do \
test -d $$subdir && echo "SUBDIRS += $$subdir" ; \
done) | sort -u >> $@
@ -53,8 +54,8 @@ ifneq ($(MAKECMDGOALS),clean)
ifneq ($(MAKECMDGOALS),mrproper)
ifneq ($(MAKECMDGOALS),menuconfig)
include $(TOPDIR)/.subdirs
include $(TOPDIR)/.config
include $(MAKETOPDIR)/.subdirs
include $(MAKETOPDIR)/.config
include $(TOPDIR)/games/games.mk
endif # MAKECMDGOALS!=menuconfig
@ -65,7 +66,7 @@ endif # no_deps!=t
##############################################################################
SUBDIRS_AVR = borg_hw
SUBDIRS_AVR = $(TOPDIR)/borg_hw
SUBDIRS_AVR += $(SUBDIRS)
.PHONY: compile-subdirs_avr
@ -77,7 +78,7 @@ compile-$(TARGET): compile-subdirs_avr $(TARGET).hex $(TARGET).bin $(TARGET).lst
OBJECTS += $(patsubst %.c,./obj_avr/%.o,${SRC})
OBJECTS += $(patsubst $(TOPDIR)/%.c,$(TOPDIR)/obj_avr/%.o,${SRC})
SUBDIROBJECTS = $(foreach subdir,$(SUBDIRS_AVR),$(foreach object,$(shell cat $(subdir)/obj_avr/.objects 2>/dev/null),$(subdir)/$(object)))
$(TARGET): $(OBJECTS) $(SUBDIROBJECTS)
@ -86,8 +87,8 @@ $(TARGET): $(OBJECTS) $(SUBDIROBJECTS)
##############################################################################
#generic rules for AVR-Build
./obj_avr/%.o: %.c
@ if [ ! -d obj_avr ]; then mkdir obj_avr ; fi
$(TOPDIR)/obj_avr/%.o: $(TOPDIR)/%.c
@ if [ ! -d $(TOPDIR)/obj_avr ]; then mkdir $(TOPDIR)/obj_avr ; fi
@ echo "compiling $<"
@ $(CC) -o $@ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -c $<
@ -109,25 +110,25 @@ $(TARGET): $(OBJECTS) $(SUBDIROBJECTS)
##############################################################################
#Rules for simulator build
SUBDIRS_SIM = simulator
SUBDIRS_SIM = $(TOPDIR)/simulator
SUBDIRS_SIM += $(SUBDIRS)
.PHONY: compile-subdirs_sim
compile-subdirs_sim:
@ for dir in $(SUBDIRS_SIM); do $(MAKE) -C $$dir objects_sim || exit 5; done
@ $(MAKE) -C ./simulator/ objects_sim || exit 5;
@ $(MAKE) -C $(TOPDIR)/simulator/ objects_sim || exit 5;
simulator: autoconf.h .config .subdirs compile-subdirs_sim $(TARGET_SIM)
simulator: $(TOPDIR)/autoconf.h .config .subdirs compile-subdirs_sim $(TARGET_SIM)
SUBDIROBJECTS_SIM = $(foreach subdir,$(SUBDIRS_SIM),$(foreach object,$(shell cat $(subdir)/obj_sim/.objects 2>/dev/null),$(subdir)/$(object)))
OBJECTS_SIM = $(patsubst %.c,obj_sim/%.o,${SRC_SIM})
OBJECTS_SIM = $(patsubst $(TOPDIR)/%.c,$(TOPDIR)/obj_sim/%.o,${SRC_SIM})
$(TARGET_SIM): $(OBJECTS_SIM) $(SUBDIROBJECTS_SIM)
$(HOSTCC) $(LDFLAGS_SIM) -o $@ $(OBJECTS_SIM) $(SUBDIROBJECTS_SIM) $(LIBS_SIM)
./obj_sim/%.o: %.c
@ if [ ! -d obj_sim ]; then mkdir obj_sim ; fi
$(TOPDIR)/obj_sim/%.o: $(TOPDIR)/%.c
@ if [ ! -d $(TOPDIR)/obj_sim ]; then mkdir $(TOPDIR)/obj_sim ; fi
@ echo "compiling $<"
@ $(HOSTCC) -o $@ $(CFLAGS_SIM) -c $<
@ -172,10 +173,14 @@ clean:
test "x$$subdir" != "x." \
&& test -e $$subdir/Makefile \
&& $(MAKE) no_deps=t -C $$subdir clean ; done ; true
$(RM) -r $(TOPDIR)/obj_avr
$(RM) -r $(TOPDIR)/obj_sim
$(RM) $(TARGET)*
$(RM) $(TARGET_SIM) $(TARGET_SIM).exe
mrproper:
$(MAKE) clean
$(RM) -f autoconf.h .config config.mk .menuconfig.log .config.old
$(RM) -f $(TOPDIR)/autoconf.h .config config.mk .menuconfig.log .config.old
sflash: $(TARGET).hex
# $(LAUNCH_BOOTLOADER) $(SERIAL) 115200
@ -189,23 +194,23 @@ uflash: $(TARGET).hex
##############################################################################
# configure ethersex
#
show-config: autoconf.h
show-config: $(TOPDIR)/autoconf.h
@echo
@echo "These modules are currently enabled: "
@echo "======================================"
@grep -e "^#define .*_SUPPORT" autoconf.h | sed -e "s/^#define / * /" -e "s/_SUPPORT.*//"
@grep -e "^#define .*_SUPPORT" $(TOPDIR)/autoconf.h | sed -e "s/^#define / * /" -e "s/_SUPPORT.*//"
.PHONY: show-config
autoconf.h .config:
$(TOPDIR)/autoconf.h .config:
@echo make\'s goal: $(MAKECMDGOALS)
ifneq ($(MAKECMDGOALS),menuconfig)
# make sure menuconfig isn't called twice, on `make menuconfig'
#test -s autoconf.h -a -s .config || $(MAKE) no_deps=t menuconfig
#test -s $(TOPDIR)/autoconf.h -a -s .config || $(MAKE) no_deps=t menuconfig
# test the target file, test fails if it doesn't exist
# and will keep make from looping menuconfig.
#test -s autoconf.h -a -s .config
touch autoconf.h .config
#test -s $(TOPDIR)/autoconf.h -a -s .config
touch $(TOPDIR)/autoconf.h .config
endif
include depend.mk
include $(MAKETOPDIR)/depend.mk

13
can/Makefile

@ -1,13 +0,0 @@
TARGET = libcan.a
TOPDIR = ..
include $(TOPDIR)/defaults.mk
ifeq ($(CAN_SUPPORT),y)
SRC = can.c
SRC += borg_can.c
SRC += lap.c
SRC += spi.c
endif
include $(TOPDIR)/rules.mk

16
config.in

@ -22,7 +22,7 @@ endmenu
### Borg Hardware Menu ########################################################
source borg_hw/config.in
source src/borg_hw/config.in
###############################################################################
@ -36,22 +36,22 @@ endmenu
### Scrolltext Menu ###########################################################
source scrolltext/config.in
source src/scrolltext/config.in
###############################################################################
### RFM12 Menu ################################################################
source rfm12/config.in
source src/rfm12/config.in
###############################################################################
### Joystick Menu #############################################################
source joystick/config.in
source src/joystick/config.in
###############################################################################
### CAN Menu ##################################################################
source can/config.in
source src/can/config.in
###############################################################################
@ -62,15 +62,15 @@ depends on JOYSTICK_SUPPORT
### Game Menu #################################################################
source games/config.in
source src/games/config.in
###############################################################################
### Animations Menu ###########################################################
source animations/config.in
source src/animations/config.in
###############################################################################
### small Animations Menu #####################################################
source smallani/config.in
source src/smallani/config.in
###############################################################################

26
defaults.mk

@ -38,27 +38,27 @@ MACHINE = $(shell uname -m)
ifeq ($(findstring CYGWIN,$(OSTYPE)),CYGWIN)
CFLAGS_SIM = -g -Wall -pedantic -std=c99 -O0 -D_WIN32 -D_XOPEN_SOURCE=600
ifeq ($(MACHINE),x86_64)
LDFLAGS_SIM = -T simulator/i386pep.x
LDFLAGS_SIM = -T ld_scripts/i386pep.x
else
LDFLAGS_SIM = -T simulator/i386pe.x
LDFLAGS_SIM = -T ld_scripts/i386pe.x
endif
LIBS_SIM = -lgdi32 -lwinmm -lm
else
ifeq ($(OSTYPE),FreeBSD)
CFLAGS_SIM = -g -I/usr/local/include -Wall -pedantic -std=c99 -O0 -D_XOPEN_SOURCE=600
ifeq ($(MACHINE),amd64)
LDFLAGS_SIM = -L/usr/local/lib -T simulator/elf_x86_64_fbsd.x
LDFLAGS_SIM = -L/usr/local/lib -T ld_scripts/elf_x86_64_fbsd.x
else
LDFLAGS_SIM = -L/usr/local/lib -T simulator/elf_i386_fbsd.x
LDFLAGS_SIM = -L/usr/local/lib -T ld_scripts/elf_i386_fbsd.x
endif
LIBS_SIM = -lglut -lpthread -lGL -lGLU -lm
else
ifeq ($(OSTYPE),Linux)
CFLAGS_SIM = -g -Wall -pedantic -std=c99 -O0 -D_XOPEN_SOURCE=600
ifeq ($(MACHINE),x86_64)
LDFLAGS_SIM = -g -T simulator/elf_x86_64.x
LDFLAGS_SIM = -T ld_scripts/elf_x86_64.x
else
LDFLAGS_SIM = -T simulator/elf_i386.x
LDFLAGS_SIM = -T ld_scripts/elf_i386.x
endif
LIBS_SIM = -lglut -lpthread -lGL -lGLU -lm
else
@ -78,12 +78,12 @@ $(TARGET):
##############################################################################
# include user's config.mk file
$(TOPDIR)/config.mk:
config.mk:
@echo "# Put your own config here!" > $@
@echo "#F_CPU = $(F_CPU)" >> $@
@echo "#MCU = $(MCU)" >> $@
@echo "created default config.mk, tune your settings there!"
-include $(TOPDIR)/config.mk
-include config.mk
##############################################################################
@ -93,15 +93,15 @@ ifneq ($(MAKECMDGOALS),clean)
ifneq ($(MAKECMDGOALS),mrproper)
ifneq ($(MAKECMDGOALS),menuconfig)
include $(TOPDIR)/.config
include $(MAKETOPDIR)/.config
CPPFLAGS += -DF_CPU=$(FREQ)UL -mmcu=$(MCU)
# flags for the linker
ifeq ($(findstring atmega128,$(MCU)),atmega128)
LDFLAGS += -T ./avr51.x -Wl,-Map,image.map -mmcu=$(MCU)
LDFLAGS += -T ld_scripts/avr51.x -Wl,-Map,image.map -mmcu=$(MCU)
else
LDFLAGS += -T ./avr5.x -Wl,-Map,image.map -mmcu=$(MCU)
LDFLAGS += -T ld_scripts/avr5.x -Wl,-Map,image.map -mmcu=$(MCU)
endif
endif # MAKECMDGOALS!=menuconfig
@ -109,8 +109,8 @@ endif # MAKECMDGOALS!=mrproper
endif # MAKECMDGOALS!=clean
ifeq ($(BOOTLOADER_SUPPORT),y)
LDFLAGS += -Wl,--section-start=.text=0xE000
CFLAGS += -mcall-prologues
LDFLAGS += -Wl,--section-start=.text=0xE000
CFLAGS += -mcall-prologues
endif

10
games/breakout/Makefile

@ -1,10 +0,0 @@
TARGET =
TOPDIR = ../..
include $(TOPDIR)/defaults.mk
ifeq ($(GAME_BREAKOUT),y)
SRC = breakout.c playfield.c rebound.c score.c level.c ball.c messages.c
endif
include $(TOPDIR)/rules.mk

22
games/games.mk

@ -1,22 +0,0 @@
ifeq ($(GAME_TETRIS_CORE),y)
SUBDIRS += games/tetris
endif
ifeq ($(GAME_SPACE_INVADERS),y)
SUBDIRS += games/space_invaders
endif
ifeq ($(GAME_SNAKE),y)
SUBDIRS += games/snake
endif
ifeq ($(ANIMATION_SNAKE),y)
ifneq ($(GAME_SNAKE),y)
SUBDIRS += games/snake
endif
endif
ifeq ($(GAME_BREAKOUT),y)
SUBDIRS += games/breakout
endif

8
games/snake/Makefile

@ -1,8 +0,0 @@
TARGET =
TOPDIR = ../..
include $(TOPDIR)/defaults.mk
SRC = snake_game.c
include $(TOPDIR)/rules.mk

8
games/space_invaders/Makefile

@ -1,8 +0,0 @@
TARGET =
TOPDIR = ../..
include $(TOPDIR)/defaults.mk
SRC = invader_init.c invader_draw.c invader_proc.c invaders2.c
include $(TOPDIR)/rules.mk

0
avr5.x → ld_scripts/avr5.x

0
avr51.x → ld_scripts/avr51.x

0
simulator/elf_i386.x → ld_scripts/elf_i386.x

0
simulator/elf_i386_fbsd.x → ld_scripts/elf_i386_fbsd.x

0
simulator/elf_x86_64.x → ld_scripts/elf_x86_64.x

0
simulator/elf_x86_64_fbsd.x → ld_scripts/elf_x86_64_fbsd.x

0
simulator/i386pe.x → ld_scripts/i386pe.x

0
simulator/i386pep.x → ld_scripts/i386pep.x

9
menu/Makefile

@ -1,9 +0,0 @@
TARGET = libanimations.a
TOPDIR = ..
include $(TOPDIR)/defaults.mk
SRC = menu.c
include $(TOPDIR)/rules.mk

8
rfm12/Makefile

@ -1,8 +0,0 @@
TARGET = objects
TOPDIR = ..
include $(TOPDIR)/defaults.mk
SRC = rfm12.c borg_rfm12.c
include $(TOPDIR)/rules.mk

11
rules.mk

@ -1,5 +1,3 @@
##############################################################################
# rules for buildung AVR objects
@ -35,17 +33,14 @@ objects_sim: $(OBJECTS_SIM)
@ if [ ! -d obj_sim ]; then mkdir obj_sim ; fi
@ echo $(OBJECTS_SIM) > obj_sim/.objects
clean-common:
$(RM) $(TARGET) *.[odasE] *.d.new *~
$(RM) -r ./obj_avr
$(RM) -r ./obj_sim
$(RM) -r obj_avr
$(RM) -r obj_sim
clean: clean-common
all:
$(MAKE) -C $(TOPDIR) all
include $(TOPDIR)/depend.mk
#include depend.mk

2
scripts/Menuconfig

@ -1564,7 +1564,7 @@ save_configuration () {
echo -n "."
DEF_CONFIG="${1:-.config}"
DEF_CONFIG_H="autoconf.h"
DEF_CONFIG_H="src/autoconf.h"
CONFIG=.tmpconfig
CONFIG_H=.tmpconfig.h

10
scrolltext/Makefile

@ -1,10 +0,0 @@
TARGET = objects
TOPDIR = ..
include $(TOPDIR)/defaults.mk
SRC = scrolltext3.c
SRC += $(shell echo $(SCROLLTEXT_FONT) | tr A-Z a-z).c
include $(TOPDIR)/rules.mk

9
animations/Makefile → src/animations/Makefile

@ -1,7 +1,8 @@
MAKETOPDIR = ../..
TARGET = libanimations.a
TOPDIR = ..
include $(TOPDIR)/defaults.mk
include $(MAKETOPDIR)/defaults.mk
SRC = program.c
@ -53,4 +54,6 @@ ifeq ($(ANIMATION_TIME),y)
SRC += borg_time.c
endif
include $(TOPDIR)/rules.mk
include $(MAKETOPDIR)/rules.mk
include $(MAKETOPDIR)/depend.mk

8
animations/bitmapscroller/Makefile → src/animations/bitmapscroller/Makefile

@ -1,6 +1,6 @@
TOPDIR = ../..
MAKETOPDIR = ../../..
include $(TOPDIR)/defaults.mk
include $(MAKETOPDIR)/defaults.mk
ifeq ($(ANIMATION_BMSCROLLER),y)
SRC = bitmapscroller.c
@ -22,4 +22,6 @@ ifeq ($(ANIMATION_FAIRYDUST),y)
SRC += fairydust.c
endif
include $(TOPDIR)/rules.mk
include $(MAKETOPDIR)/rules.mk
include $(MAKETOPDIR)/depend.mk

0
animations/bitmapscroller/amphibian.c → src/animations/bitmapscroller/amphibian.c

0
animations/bitmapscroller/amphibian.h → src/animations/bitmapscroller/amphibian.h

0
animations/bitmapscroller/bitmapscroller.c → src/animations/bitmapscroller/bitmapscroller.c

0
animations/bitmapscroller/bitmapscroller.h → src/animations/bitmapscroller/bitmapscroller.h

0
animations/bitmapscroller/config.in → src/animations/bitmapscroller/config.in

0
animations/bitmapscroller/fairydust.c → src/animations/bitmapscroller/fairydust.c

0
animations/bitmapscroller/fairydust.h → src/animations/bitmapscroller/fairydust.h

0
animations/bitmapscroller/laborlogo.c → src/animations/bitmapscroller/laborlogo.c

0
animations/bitmapscroller/laborlogo.h → src/animations/bitmapscroller/laborlogo.h

0
animations/bitmapscroller/outofspec.c → src/animations/bitmapscroller/outofspec.c

0
animations/bitmapscroller/outofspec.h → src/animations/bitmapscroller/outofspec.h

0
animations/blackhole.c → src/animations/blackhole.c

0
animations/blackhole.h → src/animations/blackhole.h

0
animations/borg_time.c → src/animations/borg_time.c

0
animations/borg_time.h → src/animations/borg_time.h

0
animations/breakout_demo.c → src/animations/breakout_demo.c

0
animations/breakout_demo.h → src/animations/breakout_demo.h

2
animations/config.in → src/animations/config.in

@ -49,7 +49,7 @@ comment "Animations"
int "Request Timeout (ms)" TIME_UPDATE_TIMEOUT 50
endmenu
source animations/bitmapscroller/config.in
source src/animations/bitmapscroller/config.in
mainmenu_option next_comment
comment "Fixed-point math patterns"

0
animations/flyingdots.c → src/animations/flyingdots.c

0
animations/flyingdots.h → src/animations/flyingdots.h

0
animations/fpmath_patterns.c → src/animations/fpmath_patterns.c

0
animations/fpmath_patterns.h → src/animations/fpmath_patterns.h

0
animations/gameoflife.c → src/animations/gameoflife.c

0
animations/gameoflife.h → src/animations/gameoflife.h

0
animations/ltn_ant.c → src/animations/ltn_ant.c

0
animations/ltn_ant.h → src/animations/ltn_ant.h

0
animations/matrix.c → src/animations/matrix.c

0
animations/matrix.h → src/animations/matrix.h

0
animations/mherweg.c → src/animations/mherweg.c

0
animations/mherweg.h → src/animations/mherweg.h

0
animations/program.c → src/animations/program.c

0
animations/program.h → src/animations/program.h

0
animations/snake.c → src/animations/snake.c

0
animations/snake.h → src/animations/snake.h

0
animations/squares.c → src/animations/squares.c

0
animations/squares.h → src/animations/squares.h

0
animations/stonefly.c → src/animations/stonefly.c

0
animations/stonefly.h → src/animations/stonefly.h

9
borg_hw/Makefile → src/borg_hw/Makefile

@ -1,9 +1,10 @@
MAKETOPDIR = ../..
TARGET = libborg_hw.a
TOPDIR = ..
SRC_SIM :=
include $(TOPDIR)/defaults.mk
include $(MAKETOPDIR)/defaults.mk
ifeq ($(BORG_HW),HW_BORG_16)
@ -66,4 +67,6 @@ ifeq ($(SRC),'')
$(error no valid hardware driver selected )
endif
include $(TOPDIR)/rules.mk
include $(MAKETOPDIR)/rules.mk
include $(MAKETOPDIR)/depend.mk

0
borg_hw/borg_hw.h → src/borg_hw/borg_hw.h

0
borg_hw/borg_hw_ancient.c → src/borg_hw/borg_hw_ancient.c

0
borg_hw/borg_hw_andreborg.c → src/borg_hw/borg_hw_andreborg.c

0
borg_hw/borg_hw_borg16.c → src/borg_hw/borg_hw_borg16.c

0
borg_hw/borg_hw_borg16_hgmod.c → src/borg_hw/borg_hw_borg16_hgmod.c

0
borg_hw/borg_hw_borg_ls.c → src/borg_hw/borg_hw_borg_ls.c

0
borg_hw/borg_hw_borg_lsjo.c → src/borg_hw/borg_hw_borg_lsjo.c

0
borg_hw/borg_hw_borg_mh.c → src/borg_hw/borg_hw_borg_mh.c

0
borg_hw/borg_hw_borg_mini.c → src/borg_hw/borg_hw_borg_mini.c

0
borg_hw/borg_hw_gigaborg.c → src/borg_hw/borg_hw_gigaborg.c

0
borg_hw/borg_hw_ledbrett.c → src/borg_hw/borg_hw_ledbrett.c

0
borg_hw/borg_hw_panel_one.c → src/borg_hw/borg_hw_panel_one.c

0
borg_hw/borg_hw_pd1165.c → src/borg_hw/borg_hw_pd1165.c

0
borg_hw/borg_hw_pingpong.c → src/borg_hw/borg_hw_pingpong.c

0
borg_hw/borg_hw_rotor.c → src/borg_hw/borg_hw_rotor.c

28
borg_hw/config.in → src/borg_hw/config.in

@ -26,59 +26,59 @@ choice 'Hardware Driver' \
if [ "$BORG_HW" == "HW_BORG_16" ] ; then
source borg_hw/config_borg16.in
source src/borg_hw/config_borg16.in
fi
if [ "$BORG_HW" == "HW_BORG_16_HGM" ] ; then
source borg_hw/config_borg16_hgmod.in
source src/borg_hw/config_borg16_hgmod.in
fi
if [ "$BORG_HW" == "HW_BORG_ANDRE" ] ; then
source borg_hw/config_andreborg.in
source src/borg_hw/config_andreborg.in
fi
if [ "$BORG_HW" == "HW_BORG_LS" ] ; then
source borg_hw/config_borg_ls.in
source src/borg_hw/config_borg_ls.in
fi
if [ "$BORG_HW" == "HW_BORG_MH" ] ; then
source borg_hw/config_borg_mh.in
source src/borg_hw/config_borg_mh.in
fi
if [ "$BORG_HW" == "HW_BORG_LSJO" ] ; then
source borg_hw/config_borg_lsjo.in
source src/borg_hw/config_borg_lsjo.in
fi
if [ "$BORG_HW" == "HW_LEDBRETT" ] ; then
source borg_hw/config_ledbrett.in
source src/borg_hw/config_ledbrett.in
fi
if [ "$BORG_HW" == "HW_BORG_MINI" ] ; then
source borg_hw/config_borg_mini.in
source src/borg_hw/config_borg_mini.in
fi
if [ "$BORG_HW" == "HW_PANEL_ONE" ] ; then
source borg_hw/config_panel_one.in
source src/borg_hw/config_panel_one.in
fi
if [ "$BORG_HW" == "HW_PD1165" ] ; then
source borg_hw/config_pd1165.in
source src/borg_hw/config_pd1165.in
fi
if [ "$BORG_HW" == "HW_PINGPONG" ] ; then
source borg_hw/config_pingpong.in
source src/borg_hw/config_pingpong.in
fi
if [ "$BORG_HW" == "HW_ROTOR" ] ; then
source borg_hw/config_rotor.in
source src/borg_hw/config_rotor.in
fi
if [ "$BORG_HW" == "HW_GIGABORG" ] ; then
source borg_hw/config_gigaborg.in
source src/borg_hw/config_gigaborg.in
fi
if [ "$BORG_HW" == "HW_ANCIENTBORG" ] ; then
source borg_hw/config_ancient.in
source src/borg_hw/config_ancient.in
fi
endmenu

0
borg_hw/config_ancient.in → src/borg_hw/config_ancient.in

0
borg_hw/config_andreborg.in → src/borg_hw/config_andreborg.in

0
borg_hw/config_borg16.in → src/borg_hw/config_borg16.in

0
borg_hw/config_borg16_hgmod.in → src/borg_hw/config_borg16_hgmod.in

0
borg_hw/config_borg_ls.in → src/borg_hw/config_borg_ls.in

0
borg_hw/config_borg_lsjo.in → src/borg_hw/config_borg_lsjo.in

0
borg_hw/config_borg_mh.in → src/borg_hw/config_borg_mh.in

0
borg_hw/config_borg_mini.in → src/borg_hw/config_borg_mini.in

0
borg_hw/config_gigaborg.in → src/borg_hw/config_gigaborg.in

0
borg_hw/config_ledbrett.in → src/borg_hw/config_ledbrett.in

0
borg_hw/config_panel_one.in → src/borg_hw/config_panel_one.in

0
borg_hw/config_pd1165.in → src/borg_hw/config_pd1165.in

0
borg_hw/config_pingpong.in → src/borg_hw/config_pingpong.in

0
borg_hw/config_rotor.in → src/borg_hw/config_rotor.in

16
src/can/Makefile

@ -0,0 +1,16 @@
MAKETOPDIR = ../..
TARGET = libcan.a
include $(MAKETOPDIR)/defaults.mk
ifeq ($(CAN_SUPPORT),y)
SRC = can.c
SRC += borg_can.c
SRC += lap.c
SRC += spi.c
endif
include $(MAKETOPDIR)/rules.mk
include $(MAKETOPDIR)/depend.mk

0
can/borg_can.c → src/can/borg_can.c

0
can/borg_can.h → src/can/borg_can.h

0
can/can.c → src/can/can.c

0
can/can.h → src/can/can.h

0
can/config.in → src/can/config.in

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save