summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-05-06 00:39:44 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-05-06 00:39:44 -0400
commitd8f2c10b7108fff6b7e437291093a1cadc15ab9f (patch)
tree3fc50a19d6fbb9c94a8fe147cd2a6c4ba7f59b8d /Makefile
parentansii c (diff)
downloadlazysphere-d8f2c10b7108fff6b7e437291093a1cadc15ab9f.tar.gz
lazysphere-d8f2c10b7108fff6b7e437291093a1cadc15ab9f.tar.bz2
lazysphere-d8f2c10b7108fff6b7e437291093a1cadc15ab9f.zip
refactor
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