# tests/Makefile
CFLAGS += -Ic:/home/project/cunit/include -I../src
CFLAGS += -Wall
LDFLAGS += -Lc:/home/project/cunit/lib
LDLIBS = -lcunit
VPATH = ../src ../bin

all: ../bin/utest_cfgreader.exe utest
../bin/utest_cfgreader.exe: utest_cfgreader.o cfgreader.o
	$(CC) -o $@ $^ $(LDFLAGS) $(LOADLIBES) $(LDLIBS)

../bin/utest_cfgreader.o: utest_cfgreader.c cfgreader.h
../bin/cfgreader.o: cfgreader.c cfgreader.h

utest:
	../bin/utest_cfgreader.exe

../bin/%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $<

.PHONY: all utest
