summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2cd62a2..f2aa236 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
TARGET := pipac
SRC_DIR := src
BUILD_DIR := build
+CFLAGS := -Wall -Wextra -pedantic -std=c11 -ggdb
SRCS := $(wildcard $(SRC_DIR)/*.c)
OBJS := $(patsubst $(SRC_DIR)/%.c, $(BUILD_DIR)/%.o, $(SRCS))
@@ -9,7 +10,7 @@ OBJS := $(patsubst $(SRC_DIR)/%.c, $(BUILD_DIR)/%.o, $(SRCS))
all: $(TARGET)
$(TARGET): $(BUILD_DIR) $(OBJS)
- $(CC) $(OBJS) -o $(TARGET) $(CFLAGS)
+ $(CC) $(CFLAGS) $(OBJS) -o $(TARGET)
$(BUILD_DIR):
@mkdir -p $@