diff options
| author | Tyler Murphy <tylerm@tylerm.dev> | 2023-05-06 00:39:44 -0400 |
|---|---|---|
| committer | Tyler Murphy <tylerm@tylerm.dev> | 2023-05-06 00:39:44 -0400 |
| commit | d8f2c10b7108fff6b7e437291093a1cadc15ab9f (patch) | |
| tree | 3fc50a19d6fbb9c94a8fe147cd2a6c4ba7f59b8d /Makefile | |
| parent | ansii c (diff) | |
| download | lazysphere-d8f2c10b7108fff6b7e437291093a1cadc15ab9f.tar.gz lazysphere-d8f2c10b7108fff6b7e437291093a1cadc15ab9f.tar.bz2 lazysphere-d8f2c10b7108fff6b7e437291093a1cadc15ab9f.zip | |
refactor
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |