X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Ftelegps-v1.0%2FMakefile;h=76dc037147c398e53b01366b272076fd6cd48f0d;hb=e09d0aee9926951bd4179be03f1626de8d7927a9;hp=b5c3dfa368eb38e41342c13e1b1af6a2a5495480;hpb=23d9d37fd2a8f4b867f34e71a2b0f7cb090717c1;p=fw%2Faltos diff --git a/src/telegps-v1.0/Makefile b/src/telegps-v1.0/Makefile index b5c3dfa3..76dc0371 100644 --- a/src/telegps-v1.0/Makefile +++ b/src/telegps-v1.0/Makefile @@ -20,10 +20,6 @@ INC = \ Makefile -# ao_data.c \ -# ao_adc_lpc.c \ -# ao_convert_volt.c \ - ALTOS_SRC = \ ao_interrupt.c \ ao_boot_chain.c \ @@ -54,6 +50,9 @@ ALTOS_SRC = \ ao_log_gps.c \ ao_distance.c \ ao_sqrt.c \ + ao_data.c \ + ao_adc_lpc.c \ + ao_convert_volt.c \ $(SAMPLE_PROFILE) PRODUCT=TeleGPS-v1.0 @@ -64,13 +63,12 @@ CFLAGS = $(PRODUCT_DEF) $(LPC_CFLAGS) $(PROFILE_DEF) -Os -g PROGNAME=telegps-v1.0 PROG=$(PROGNAME)-$(VERSION).elf +HEX=$(PROGNAME)-$(VERSION).ihx SRC=$(ALTOS_SRC) ao_telegps.c OBJ=$(SRC:.c=.o) -all: $(PROG) - -LDFLAGS=-L../lpc -Wl,-Taltos.ld +all: $(PROG) $(HEX) $(PROG): Makefile $(OBJ) altos.ld $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)