CC=gcc
CFLAGS=-march=x86-64 -mtune=generic -fstack-protector-strong -O3 -Wall
LIBS=-lunicorn
LDIR=/usr/lib
IDIR=/usr/include

all:
	make native
	make server

native:
	$(CC) $(CFLAGS) pogohash.c -o pogohash -I$(IDIR) -L$(LDIR) $(LIBS)

server:
	$(CC) $(CFLAGS) pogohash-server.c -o pogohash-server -I$(IDIR) -L$(LDIR) $(LIBS)

clean:
	rm -f *.o
	rm -f pogohash
	rm -f pogohash-server
