aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorMarvin Borner2023-05-26 18:08:09 +0200
committerMarvin Borner2023-05-26 18:09:39 +0200
commit464cca35825a02541efd46cfd3af91146c118d01 (patch)
tree2c9709cfbc9705d8d2c7eda481e81c6e1ff32ca7 /makefile
parentb31220aadc24ff137a4fe4bc39780ae63c58e11b (diff)
Becoming aggressive
Diffstat (limited to 'makefile')
-rw-r--r--makefile12
1 files changed, 3 insertions, 9 deletions
diff --git a/makefile b/makefile
index fff2aa8..56e0fc8 100644
--- a/makefile
+++ b/makefile
@@ -7,7 +7,6 @@ TG = ctags
BUILD = ${CURDIR}/build
SRC = ${CURDIR}/src
INC = ${CURDIR}/inc
-LIB = ${CURDIR}/lib
SRCS = $(wildcard $(SRC)/*.c)
OBJS = $(patsubst $(SRC)/%.c, $(BUILD)/%.o, $(SRCS))
@@ -15,13 +14,6 @@ CFLAGS_DEBUG = -Wno-error -g -O0 -Wno-unused -fsanitize=address,undefined,leak
CFLAGS_WARNINGS = -Wall -Wextra -Wshadow -Wpointer-arith -Wwrite-strings -Wredundant-decls -Wnested-externs -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wswitch-default -Wswitch-enum -Wunreachable-code -Wundef -Wold-style-definition -pedantic -Wno-switch-enum
CFLAGS = $(CFLAGS_WARNINGS) -std=c99 -Ofast -I$(INC)
-ifdef TEST # TODO: Somehow clean automagically
-CFLAGS += -DTEST -DNTESTS=$(TEST)
-ifdef START
-CFLAGS += -DSTARTTEST=$(START)
-endif
-endif
-
ifdef DEBUG # TODO: Somehow clean automagically
CFLAGS += $(CFLAGS_DEBUG)
endif
@@ -30,7 +22,9 @@ ifeq ($(PREFIX),)
PREFIX := /usr/local
endif
-all: compile sync
+all: compile
+
+full: all sync
compile: $(BUILD) $(OBJS) $(BUILD)/calm