Makefile: blorb-lib needs hash.h
authorThomas Huth <huth@tuxfamily.org>
Fri, 14 Oct 2022 18:29:41 +0000 (20:29 +0200)
committerThomas Huth <huth@tuxfamily.org>
Fri, 14 Oct 2022 18:29:41 +0000 (20:29 +0200)
commitcdf0ad4aff2d8937034e02e41a5aadcca320ea18
treee012199fb46951de38bedca130734dccfb056aee
parent5a86de2f0799bde12699a0189ea12be8c96194a5
Makefile: blorb-lib needs hash.h

If running "make blorb-lib" on a vanilla source directory, the
compilation fails with:

 make -C src/blorb
 make[1]: Entering directory '/home/thomas/src/frotz/src/blorb'
 cc -Wall -std=c99 -O3  -g -D_POSIX_C_SOURCE=200809L -I../common -fPIC
  -fpic -o blorblib.o -c blorblib.c
 In file included from blorblib.c:11:
 ../common/frotz.h:74:10: fatal error: hash.h: No such file or directory
    74 | #include "hash.h"
       |          ^~~~~~~~
 compilation terminated.

Looks like we also have to make sure that hash.h is in place before
compiling the blorb target, thus add the dependency to the Makefile.
Makefile