Since VCD has now to go through the T tracer, we enforce the consistency of data found in common/utils/LOG/vcd_signal_dumper.[ch] with data found in common/utils/T/T_messages.txt. We might get completely rid of common/utils/LOG/vcd_signal_dumper.[ch] at some point. For the moment, let's keep it. This commit adds the program common/utils/T/check_vcd.c and necessary modifications to enforce its use at compilation time. If you modify common/utils/LOG/vcd_signal_dumper.[ch] but do not update cmake_targets/CMakeLists.txt an error will pop up when you compile the software. You have to keep both modules synchronized.
31 lines
690 B
Makefile
31 lines
690 B
Makefile
CC=gcc
|
|
CFLAGS=-Wall -g
|
|
|
|
GENIDS=genids
|
|
GENIDS_OBJS=genids.o
|
|
|
|
all : $(GENIDS) T_messages.txt.h T_IDs.h
|
|
|
|
$(GENIDS): $(GENIDS_OBJS)
|
|
$(CC) $(CFLAGS) -o $(GENIDS) $(GENIDS_OBJS)
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
T_messages.txt.h: T_messages.txt
|
|
xxd -i T_messages.txt T_messages.txt.h
|
|
|
|
T_IDs.h: $(GENIDS) T_messages.txt
|
|
./$(GENIDS) T_messages.txt T_IDs.h
|
|
|
|
check_vcd:
|
|
gcc -Wall -I. -I.. -I../itti -Itracer -o _check_vcd check_vcd.c tracer/database.c tracer/utils.c -lm -pthread
|
|
./_check_vcd || (rm -f ./_check_vcd ./T_IDs.h ./T_messages.txt.h && false)
|
|
rm -f ./_check_vcd
|
|
|
|
.PHONY: check_vcd
|
|
|
|
clean:
|
|
rm -f *.o $(GENIDS) core T_IDs.h T_messages.txt.h _check_vcd
|
|
cd tracer && make clean
|