CC = gcc
CFLAGS1 = -O3 -Wall
CFLAGS2 = -lsocket
STRIP = strip

default:
	@echo "-------------------------------"
	@echo "Make with the OS from the list:"
	@echo ""
	@echo "1.) linux"
	@echo "2.) bsd"
	@echo "3.) solaris"
	@echo ""
	@echo "ex: make bsd"
	@echo "-------------------------------"


clean:
	/bin/rm -f ish_detect

linux:  clean cc1 fin

bsd:    clean cc1 fin

solaris:        clean cc2 fin

cc1:
	$(CC) $(CFLAGS1) -o ish_detect ish_detect.c ish_main.c

cc2:
	$(CC) $(CFLAGS2) -o ish_detect ish_detect.c ish_main.c

fin:
	$(STRIP) ish_detect
