summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index d68e96a..07ffbf4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,14 @@
CC = gcc
-SOURCE = src
+SOURCE = src
+SOURCE += lib
+SOURCE += command
MAJOR = 0
MINOR = 0
PATCH = 1
-INCFLAGS = $(shell echo $(SOURCE) | xargs printf -- '-I%s')
+INCFLAGS = $(shell echo $(SOURCE) | xargs printf -- '-I%s ')
CCFLAGS = -std=c89 -Wall -Wextra -pedantic -O2
CCFLAGS += -D_DEFAULT_SOURCE -DMAJOR=$(MAJOR) -DMINOR=$(MINOR) -DPATCH=$(PATCH) -DCHECK_LINK
@@ -21,9 +23,9 @@ SRC = $(shell find $(SOURCE) -name "*.c")
DIR = $(shell find $(SOURCE) -type d)
OBJ = $(SRC:%.c=$(BIN)/%.o)
-.PHONY: dirs run clean build install uninstall
+.PHONY: empty dirs run clean build install uninstall
-EOF: clean build
+empty: clean build
dirs:
echo $(DIR) | xargs printf -- '$(BIN)/%s\n' | xargs mkdir -p