altos/lambdakey-v1.0: Fix obvious build errors
authorKeith Packard <keithp@keithp.com>
Sun, 21 Apr 2019 19:55:20 +0000 (12:55 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 21 Apr 2019 19:55:20 +0000 (12:55 -0700)
The code is too large to run on this device at this point, but at least
it doesn't fail to compile?

Signed-off-by: Keith Packard <keithp@keithp.com>
src/lambdakey-v1.0/Makefile
src/lambdakey-v1.0/ao_lambdakey.c

index 53ecda900d20d1da137b29e688a620b62a164ace..559b3655b75066a97db93575214499ffde6316f8 100644 (file)
@@ -55,13 +55,10 @@ bletch:
 all: $(PROG) $(HEX)
 
 $(PROG): Makefile $(OBJ)
-       $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS)
+       $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(OBJ) $(LIBS) -Wl,-M=$(PROGNAME).map
 
 $(OBJ): $(INC)
 
-ao_product.h: ao-make-product.5c ../Version
-       $(call quiet,NICKLE,$<) $< -m altusmetrum.org -i $(IDPRODUCT) -p $(PRODUCT) -v $(VERSION) > $@
-
 ao_scheme_const.h: ao-scheme-make-const ao_scheme_basic_syntax.scheme
        $^ -o $@ -d FLOAT,VECTOR,QUASI,BIGINT,POSIX,PORT,SAVE,UNDEF
 
index a608d8e49c3b90ec58ee0f10adadda3ba7a523b6..c50317c01a5fbea013257bcc1b292cdd729252e2 100644 (file)
@@ -15,7 +15,7 @@
 #include <ao.h>
 #include <ao_scheme.h>
 
-static void scheme_cmd() {
+static void scheme_cmd(void) {
        ao_scheme_read_eval_print(stdin, stdout, false);
 }
 
@@ -43,7 +43,7 @@ _ao_scheme_getc(void)
 void main(void)
 {
 #ifdef LEDS_AVAILABLE
-       ao_led_init(LEDS_AVAILABLE);
+       ao_led_init();
 #endif
        ao_clock_init();
        ao_timer_init();