2021-08-22 05:43:06 +08:00
|
|
|
ifeq ($(PLTNAME),)
|
|
|
|
-include ../../Makefile.platform
|
|
|
|
-include ../../.Makefile.options.cache
|
|
|
|
ifneq ($(PLATFORM), $(CACHED_PLATFORM))
|
|
|
|
$(error platform definitions have been changed, please "make clean" at the root of the project)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2020-06-08 09:15:10 +08:00
|
|
|
MYSRCPATHS =
|
2019-08-17 04:50:03 +08:00
|
|
|
MYINCLUDES = -I../../common_fpga
|
|
|
|
MYCFLAGS = -std=c99 -D_ISOC99_SOURCE
|
2021-08-22 05:43:06 +08:00
|
|
|
ifeq ($(PLATFORM),PM3ICOPYX)
|
|
|
|
MYDEFS = -DXC3
|
|
|
|
else
|
|
|
|
MYDEFS =
|
|
|
|
endif
|
2019-08-17 04:50:03 +08:00
|
|
|
MYSRCS =
|
|
|
|
MYLIBS =
|
2019-08-09 20:41:44 +08:00
|
|
|
|
2020-06-03 22:07:35 +08:00
|
|
|
MYSRCPATHS += ../../common/lz4
|
|
|
|
MYINCLUDES += -I../../common/lz4
|
|
|
|
MYSRCS += lz4hc.c lz4.c
|
|
|
|
MYCFLAGS += -DLZ4_MEMORY_USAGE=20 -Wno-redundant-decls -Wno-old-style-definition -Wno-missing-prototypes -Wno-missing-declarations
|
2019-08-09 20:41:44 +08:00
|
|
|
|
|
|
|
BINS = fpga_compress
|
|
|
|
|
2019-08-17 04:50:03 +08:00
|
|
|
include ../../Makefile.host
|
2019-08-09 20:41:44 +08:00
|
|
|
|
2019-08-17 04:50:03 +08:00
|
|
|
fpga_compress: $(OBJDIR)/fpga_compress.o $(MYOBJS)
|
2020-02-12 16:52:23 +08:00
|
|
|
|
|
|
|
tarbin: $(BINS)
|
|
|
|
$(info [=] TAR ../proxmark3-$(platform)-bin.tar)
|
2020-03-09 23:54:42 +08:00
|
|
|
$(Q)$(TAR) $(TARFLAGS) ../../proxmark3-$(platform)-bin.tar $(BINS:%=fpga_compress/%) $(WINBINS:%=fpga_compress/%)
|