2014-11-03 12:54:41 -05:00
|
|
|
MSCDIR = ../../../../
|
2014-11-03 12:11:14 -05:00
|
|
|
PYTHON = python3
|
|
|
|
|
|
|
|
CMD = PYTHONPATH=$(MSCDIR) $(PYTHON)
|
|
|
|
|
|
|
|
CC=gcc
|
|
|
|
CFLAGS =-Wall -O0
|
|
|
|
|
|
|
|
crc_tb:
|
|
|
|
$(CC) $(CFLAGS) $(INC) -o crc crc.c
|
|
|
|
./crc /> crc_ref
|
2014-11-03 12:54:41 -05:00
|
|
|
$(CMD) crc_tb.py
|
2014-11-03 12:11:14 -05:00
|
|
|
|
|
|
|
scrambler_tb:
|
|
|
|
$(CC) $(CFLAGS) $(INC) -o scrambler scrambler.c
|
|
|
|
./scrambler /> scrambler_ref
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm crc crc_ref scrambler scrambler_ref
|