# Tested on Windows 7 with MinGW-w64
CC=gcc
CFLAGS=-c -Wall
LDFLAGS= -leay32 -lssl32

all: test_client

test_client: test_client.o openssl_hostname_validation.o
	$(CC) test_client.o openssl_hostname_validation.o -o test_client $(LDFLAGS)

test_client.o: test_client.c
	$(CC) $(CFLAGS) test_client.c

openssl_hostname_validation.o: openssl_hostname_validation.c
	$(CC) $(CFLAGS) openssl_hostname_validation.c

clean:
	rm -rf *.o test_client.exe
