mirror of
https://github.com/yrutschle/sslh.git
synced 2026-10-22 10:02:09 +03:00
htest.c was missing the "typedef struct hash hash" that hash.h requires, and the Makefile linked the top-level ../hash.o which is built without -DHASH_DEBUG, leaving hash_dump/hash_item_print undefined. Build a local hash.o with the flag instead. All 16 tests now compile and pass.
11 lines
146 B
Makefile
11 lines
146 B
Makefile
|
|
CFLAGS=-DHASH_DEBUG -O2 -Wall
|
|
OBJ=hash.o ../gap.o htest.o
|
|
|
|
hash.o: ../hash.c
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
htest: $(OBJ)
|
|
$(CC) -o htest $(OBJ)
|
|
|