# This Makefile was added by Andrey "Croco" Stolyarov
# for the FEDAnet project.
#
# It may look oversimplified; if so, just download the
# original yespower tarball and enjoy :-)  See the
# README file for details.
#

CC=gcc
CFLAGS=-std=c99 -Wall -O2 -fomit-frame-pointer

# we tolerate c99 in 3rd-party libraries as of now, but this is to be fixed
# -fomit-frame-pointer is copied from the original yespower's Makefile,
# as well as the 2nd optimization level (-O2)

NAME=yespower
MODULES= yespower-opt.o sha256.o

lib$(NAME).a: $(MODULES)
	ar -rcs $@ $^

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

clean:
	rm -f *.o lib$(NAME).a
