Add file output
[proth.git] / Makefile
1 CC = gcc
2 COMPILER_FLAGS = -Wall
3
4 CSRC = *.c
5
6 ifeq ($(debug),1)
7 COMPILER_FLAGS += -g
8 else
9 COMPILER_FLAGS += -Werror -O2
10 endif
11
12 #LINKER_FLAGS specifies the libraries we're linking against
13 LINKER_FLAGS = -lgmp -lpthread
14
15 #OBJ_NAME specifies the name of our exectuable
16 BIN_NAME = proth
17
18 #This is the target that compiles our executable
19 all : $(CSRC)
20 $(CC) $(CSRC) $(COMPILER_FLAGS) $(LINKER_FLAGS) -o $(BIN_NAME)