# Currently, all c files in the primary directory are compiled
# and the resulting objects all linked together.
# It's actually safer to just 
# cd configs
# make clean
# make
# cd ..
# cc -o bif-c -Wall *.c

#CFLAGS = "-O3"
CFLAGS = "-Wall"

objects := $(patsubst %.c,%.o,$(wildcard *.c))

confdir := configs


all: $(objects)
		cc -o bif-c $(objects)

.PHCONFIG: config
config:
		make -C $(confdir)

bif-c: 

# $(objects) : bif_m.h bifu_i.h bifdp_a.h bif_a.h
# However, there are other relationships, so we'll just force a full re-compile:
configinc := $(wildcard $(confdir)/*.h)



inclusions := $(wildcard *.h) 

$(objects) : $(inclusions) $(configinc)
# ... but it didn't work. Just call cc directly, as at the top of the file.

# I'm not sure if this would do any good.
# %.o : %.h

# There are other dependencies as well, but I'm too lazy to spell them out.



#    .PHONY : clean
#     clean :
#             -rm edit $(objects)
