Dennis Muhlestein  committed 9f30814

Optional LIBS argument in Makefile.

Allows more easily linking with additional libraries besides the fx2.lib.

  • Participants
  • Parent commits 0246c96
  • Branches master

Comments (0)

Files changed (1)

 # (Redefine after including this makefile)
 # VID vendor id
 # PID product id
+# LIBS optional additional libraries to link with the firmware.
 # SDCC build/link options
 #  CODE_SIZE:    Default --code-size 0x3c00
 #  XRAM_SIZE:    Default --xram-size 0x0200
 	 asx8051 -logs $$a; done
 	for s in $(SOURCES); do \
 	 $(CC) -c -I $(FX2LIBDIR)/include $$s; done
-	$(CC) -o $(BASENAME).ihx $(RELS) fx2.lib -L $(FX2LIBDIR)/lib
+	$(CC) -o $(BASENAME).ihx $(RELS) fx2.lib -L $(FX2LIBDIR)/lib $(LIBS)
 $(BASENAME).bix: $(BASENAME).ihx