]> sigrok.org Git - sigrok-firmware-fx2lafw.git/blobdiff - Makefile.am
Use the same VID/PID for Hantek 6022BE and SainSmart DDS120.
[sigrok-firmware-fx2lafw.git] / Makefile.am
index afafb2e56e757c8b6a036f66133c2175e99e9bab..d570deb61337be1558497b69f723dd424f108ae3 100644 (file)
@@ -25,7 +25,7 @@ SUFFIXES = .a51 .c .fw .ihx .rel
 # Flags for firmware hex file generation
 SDCC_LINK_FLAGS = --code-size 0x1c00 --xram-size 0x0200 --xram-loc 0x1c00 -Wl"-b DSCR_AREA=0x1e00" -Wl"-b INT2JT=0x1f00"
 SDCC_LINK_FLAGS_HANTEK_6022BE = --code-size 0x3c00 --xram-size 0x0100 --xram-loc 0x3c00 -Wl"-b DSCR_AREA=0x3d00" -Wl"-b INT2JT=0x3f00"
-SDCC_LINK_FLAGS_SAINSMART_DDS120 = --code-size 0x3c00 --xram-size 0x0100 --xram-loc 0x3c00 -Wl"-b DSCR_AREA=0x3d00" -Wl"-b INT2JT=0x3f00"
+SDCC_LINK_FLAGS_SAINSMART_DDS120 = $(SDCC_LINK_FLAGS_HANTEK_6022BE)
 
 # Include paths
 as_includes = -I$(srcdir)/include
@@ -69,6 +69,7 @@ firmware_binaries = \
 fx2lafw_headers = \
        include/command.h \
        include/dscr.inc \
+       include/common.inc \
        include/fx2lafw.h \
        include/gpif-acquisition.h
 
@@ -81,7 +82,8 @@ fx2lafw_objects = \
        gpif-acquisition.rel
 
 hantek_6022be_headers = \
-       include/dscr_hantek_6022be.inc
+       include/dscr_hantek_6022be.inc \
+       include/common.inc
 
 hantek_6022be_sources = \
        hantek_6022be.c
@@ -90,7 +92,8 @@ hantek_6022be_objects = \
        hantek_6022be.rel
 
 sainsmart_dds120_headers = \
-       include/dscr_hantek_6022be.inc
+       include/dscr_hantek_6022be.inc \
+       include/common.inc
 
 sainsmart_dds120_sources = \
        sainsmart_dds120.c