X-Git-Url: http://hec.to/gitweb/?p=proth.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=344d71a729b3923e5cfc438dfd18d4680b553442;hp=0000000000000000000000000000000000000000;hb=152d9c60ef038e382c3f35e8299555b7bb4f3f93;hpb=7fc3a441430d1a9a2faa4360a6f45ad5ad2b66eb diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..344d71a --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +CC = gcc +COMPILER_FLAGS = -Wall + +CSRC = *.c + +ifeq ($(debug),1) + COMPILER_FLAGS += -g +else + COMPILER_FLAGS += -Werror -O2 +endif + +#LINKER_FLAGS specifies the libraries we're linking against +LINKER_FLAGS = -lgmp -lpthread + +#OBJ_NAME specifies the name of our exectuable +BIN_NAME = proth + +#This is the target that compiles our executable +all : $(CSRC) + $(CC) $(CSRC) $(COMPILER_FLAGS) $(LINKER_FLAGS) -o $(BIN_NAME)