X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=Makefile;h=f8c9c73a7b22aaba15e1619f69a388ff65a96f56;hp=543f8e37c45c1138e5913a003e81b40c0e44b00d;hb=acc4fc635edb70ec1ba2dff9f7ac0c8542c72c47;hpb=e14f07bfdb8824fc7ed6df1129c66ee39ffd6d54 diff --git a/Makefile b/Makefile index 543f8e37..f8c9c73a 100644 --- a/Makefile +++ b/Makefile @@ -4,14 +4,9 @@ NO_OPT=--nogcse --noinvariant --noinduction --nojtbound --noloopreverse \ --nolabelopt --nooverlay --peep-asm DEBUG=--debug -CFLAGS=--model-large $(DEBUG) --less-pedantic \ - --no-peep --int-long-reent --float-reent \ +CFLAGS=--model-small $(DEBUG) --less-pedantic LDFLAGS=--out-fmt-ihx -LDFLAGS_RAM=$(LDFLAGS) --code-loc 0xf000 --code-size 0x800 \ - --xram-loc 0xf800 --xram-size 0x700 --iram-size 0xff - - LDFLAGS_FLASH=$(LDFLAGS) --code-loc 0x0000 --code-size 0x8000 \ --xram-loc 0xf000 --xram-size 0xf00 --iram-size 0xff @@ -21,10 +16,20 @@ INC = \ SRC = \ ao_adc.c \ + ao_beep.c \ + ao_cmd.c \ + ao_dma.c \ + ao_ee.c \ + ao_flight.c \ + ao_led.c \ + ao_log.c \ + ao_mutex.c \ + ao_panic.c \ + ao_report.c \ ao_task.c \ ao_timer.c \ - ao_panic.c \ - ao_test.c \ + ao_usb.c \ + ao_main.c \ _bp.c ADB=$(SRC:.c=.adb) @@ -35,7 +40,7 @@ REL=$(SRC:.c=.rel) RST=$(SRC:.c=.rst) SYM=$(SRC:.c=.sym) -PROGS=$(PROG)-flash.ihx $(PROG)-ram.ihx +PROGS=$(PROG).ihx PCDB=$(PROGS:.ihx=.cdb) PLNK=$(PROGS:.ihx=.lnk) PMAP=$(PROGS:.ihx=.map) @@ -47,12 +52,9 @@ PAOM=$(PROGS:.ihx=) all: $(PROGS) -$(PROG)-ram.ihx: $(REL) Makefile - $(CC) $(LDFLAGS_RAM) $(CFLAGS) -o $(PROG)-ram.ihx $(REL) - $(CC) $(LDFLAGS_FLASH) $(CFLAGS) -o $(PROG)-flash.ihx $(REL) - sh check-stack ao.h $(PROG)-flash.mem - -$(PROG)-flash.ihx: $(PROG)-ram.ihx +$(PROG).ihx: $(REL) Makefile + $(CC) $(LDFLAGS_FLASH) $(CFLAGS) -o $(PROG).ihx $(REL) + sh check-stack ao.h $(PROG).mem clean: rm -f $(ADB) $(ASM) $(LNK) $(LST) $(REL) $(RST) $(SYM)