diff options
| author | Keith Packard <keithp@keithp.com> | 2019-02-18 12:59:05 -0800 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2019-02-18 13:08:23 -0800 |
| commit | 7a89aa1ea7e1b02b5cd310986adf4239ec0ce91d (patch) | |
| tree | 74e5fe54f95ab21e513a1c9a14b8a02c1c8cffea /src/micropeak-v2.0 | |
| parent | 889518aeee080b0f8bb954db86d08105898d8161 (diff) | |
altos: Move common build definitions to src/Makefile.defs
This cleans up the build process for all architectures, providing a
common place to specify vpath, cflags and build rules for various
common files.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/micropeak-v2.0')
| -rw-r--r-- | src/micropeak-v2.0/Makefile | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/micropeak-v2.0/Makefile b/src/micropeak-v2.0/Makefile index c7d1b22d..6bac3e29 100644 --- a/src/micropeak-v2.0/Makefile +++ b/src/micropeak-v2.0/Makefile @@ -52,13 +52,14 @@ INC=\ ao_log_micro.h \ ao_micropeak.h \ altitude-pa.h \ + ao_product.h \ stm32f0.h IDPRODUCT=0x14 PRODUCT=MicroPeak-v2.0 PRODUCT_DEF=-DMICROPEAK -CFLAGS = $(PRODUCT_DEF) $(STMF0_CFLAGS) -g -Os +CFLAGS = $(PRODUCT_DEF) $(STMF0_CFLAGS) PROGNAME=micropeak-v2.0 PROG=$(PROGNAME)-$(VERSION).elf @@ -72,12 +73,7 @@ all: $(PROG) $(HEX) LDFLAGS=$(CFLAGS) -L$(TOPDIR)/stmf0 -Wl,-Tmicropeak.ld -n $(PROG): Makefile $(OBJ) micropeak.ld - $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS) - -ao_product.h: ao-make-product.5c ../Version - $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@ - -ao_product.o: ao_product.c ao_product.h + $(call quiet,CC) $(LDFLAGS) -o $(PROG) $(OBJ) $(LIBS) distclean: clean @@ -90,11 +86,8 @@ publish: $(PUBLISH_HEX) $(PUBLISH_HEX): $(HEX) cp -a $(HEX) $@ -../altitude-pa.h: make-altitude-pa - nickle $< > $@ - install: uninstall: -$(OBJ): ao_product.h $(INC) +$(OBJ): $(INC) |
