diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-03-23 12:19:59 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-03-23 12:19:59 +0100 |
| commit | f5e3e9b210ac7095022c379c773d97f6d709e39d (patch) | |
| tree | a16118d1d6d4859fd61240530de9489352037b7c /makefile | |
| parent | 72fb21bd6d55166da46d1f523699da1a7f837924 (diff) | |
add standalone mode
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -6,6 +6,7 @@ CM_OPT_RELEASE ?= 1 CM_OPT_ENABLE_UBSAN ?= 0 CM_OPT_ENABLE_ASAN ?= 0 CM_OPT_ENABLE_SSE2 ?= 0 +CM_OPT_STANDALONE ?= 1 CC ?= gcc @@ -44,8 +45,10 @@ ifeq ($(CM_OPT_ENABLE_SSE2),1) CM_CC_FLAGS += -DCM_SSE2=1 -msse2 endif +ifeq ($(CM_OPT_STANDALONE),1) .PHONY: all all: $(CM_OBJECT) $(CM_DEMO) +endif $(CM_OBJECT): $(CM_SOURCE) $(CC) $(CM_CC_FLAGS) -c $< -o $@ @@ -54,7 +57,7 @@ $(CM_DEMO): $(CM_DEMO_SOURCE) $(CM_OBJECT) $(CC) $(CM_CC_FLAGS) $^ -o $@ .PHONY: clean -clean: +clean:: $(RM) $(CM_OBJECT) $(CM_DEPEND) $(RM) $(CM_DEMO) $(CM_DEMO_DEPEND) |
