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/telegps-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/telegps-v2.0')
| -rw-r--r-- | src/telegps-v2.0/Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/telegps-v2.0/Makefile b/src/telegps-v2.0/Makefile index 617efa65..7ce28471 100644 --- a/src/telegps-v2.0/Makefile +++ b/src/telegps-v2.0/Makefile @@ -3,7 +3,9 @@ # # -include ../stmf0/Makefile.defs +TOPDIR=.. + +include $(TOPDIR)/stmf0/Makefile.defs INC = \ ao.h \ @@ -59,7 +61,7 @@ PRODUCT=TeleGPS-v2.0 PRODUCT_DEF=-DTELEGPS IDPRODUCT=0x0025 -CFLAGS = $(PRODUCT_DEF) $(STMF0_CFLAGS) $(PROFILE_DEF) -g -Os +CFLAGS = $(PRODUCT_DEF) $(STMF0_CFLAGS) $(PROFILE_DEF) PROGNAME=telegps-v2.0 PROG=$(PROGNAME)-$(VERSION).elf @@ -75,9 +77,6 @@ $(PROG): Makefile $(OBJ) altos.ld $(OBJ): $(INC) -ao_product.h: ao-make-product.5c ../Version - $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@ - distclean: clean clean: |
