old:
	@echo -e '\nBuilding libbar\n--------------------'
	gcc -o libbar.so -shared indirect.c
	@echo -e '\nBuilding libfoo\n--------------------'
	gcc -o libfoo.so -shared -L. -lbar direct.c
new:
	@echo -e '\nBuilding libfoo\n--------------------'
	gcc -o libfoo.so -shared -DLINK_NEW direct.c
app:
	@echo -e '\nBuilding app.x\n--------------------'
	gcc -o app.x -Wl,-rpath-link,. -L. -lfoo app.c

cygold:
	@echo -e '\nBuilding libbar\n--------------------'
	gcc -mno-cygwin -o bar.dll -shared indirect.c
	@echo -e '\nBuilding libfoo\n--------------------'
	gcc -mno-cygwin -o foo.dll -shared -L. -lbar direct.c
cygnew:
	@echo -e '\nBuilding libfoo\n--------------------'
	gcc -mno-cygwin -o foo.dll -shared -DLINK_NEW direct.c
cygapp:
	@echo -e '\nBuilding app.x\n--------------------'
	gcc -mno-cygwin -o app.exe -L. -lfoo app.c
