diff --git a/simulat0r/bin/update-bridge-files.sh b/simulat0r/bin/update-bridge-files.sh index f278dc5..3d801a2 100755 --- a/simulat0r/bin/update-bridge-files.sh +++ b/simulat0r/bin/update-bridge-files.sh @@ -44,3 +44,11 @@ do (printf "# GENERATED INCLUDE BRIDGE/\n"; echo include `dirname $i | sed "s#[^/]*#..#g" `/../$i) >simulat0r/$i fi done + +if cmp firmware/.gitignore simulat0r/firmware/.gitignore; +then + echo OK .gitignore is the same in firmware/ and simulat0r/firmware +else + echo WARNING: .gitignore mismatch in firmware/ and simulat0r/firmware + diff -y firmware/.gitignore simulat0r/firmware/.gitignore +fi diff --git a/simulat0r/firmware/.gitignore b/simulat0r/firmware/.gitignore new file mode 100644 index 0000000..ca10624 --- /dev/null +++ b/simulat0r/firmware/.gitignore @@ -0,0 +1,6 @@ +firmware.bin +firmware.elf +lpc1xxx/memory.ld +applications/wrapper.c +lcd/allfonts.h +Makefile.dep diff --git a/simulat0r/firmware/basic/idle.c b/simulat0r/firmware/basic/idle.c new file mode 100644 index 0000000..bd8078b --- /dev/null +++ b/simulat0r/firmware/basic/idle.c @@ -0,0 +1,2 @@ +/* AUTOGENERATED SOURCE FILE */ +#include "../../../firmware/basic/idle.c" diff --git a/simulat0r/firmware/basic/idle.h b/simulat0r/firmware/basic/idle.h new file mode 100644 index 0000000..a230196 --- /dev/null +++ b/simulat0r/firmware/basic/idle.h @@ -0,0 +1,2 @@ +/* AUTOGENERATED SOURCE FILE */ +#include "../../../firmware/basic/idle.h" diff --git a/simulat0r/simcore/Makefile b/simulat0r/simcore/Makefile index 3fc4357..1bd0cb5 100644 --- a/simulat0r/simcore/Makefile +++ b/simulat0r/simcore/Makefile @@ -5,15 +5,10 @@ CFLAGS += -I../firmware CFLAGS += -I../firmware/core # for gpio.h including projectconfig.h without path CFLAGS += -I../simcore -OBJS+= ../firmware/basic/*.o -OBJS+= ../firmware/core/*.o -OBJS+= ../firmware/core/*/*.o -LDFLAGS+= -L../firmware/applications -LIBS+= ../firmware/applications/libapp.a -LDFLAGS+= -L../firmware/lcd -LIBS+= ../firmware/lcd/liblcd.a -LDFLAGS+= -L../firmware/usb -LIBS+= ../firmware/usb/libusb.a +OBJS = simcore.o misc.o -.PHONY : all -all : simcore.o misc.o #$(OBJS) $(LIBS) +.PHONY : all clean +all : $(OBJS) + +clean: + $(RM) $(OBJS) diff --git a/simulat0r/tui/Makefile b/simulat0r/tui/Makefile index 194bae0..3f9aed0 100644 --- a/simulat0r/tui/Makefile +++ b/simulat0r/tui/Makefile @@ -28,3 +28,5 @@ all : simulat0r simulat0r : simulat0r.o $(OBJS) $(LIBS) +clean: + $(RM) simulat0r.o