fix: Fix version.h dependency for clang

This commit is contained in:
Rachel 2025-01-02 11:34:34 -08:00
parent 33b973d86d
commit 060551e282
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -4,6 +4,7 @@
*.exe
*.out
*.so
*.dynlib
/narc
build/*

View File

@ -52,7 +52,7 @@ VERSION = VERSION
all: lib cli
cli: $(CLITARGET)
cli: $(CLIVER) $(CLITARGET)
lib: $(LIBTARGET)
@ -74,7 +74,7 @@ $(CLIVER): tools/version.sh $(VERSION)
# Statically link the CLI
$(CLITARGET): CFLAGS += -I./cli/include
$(CLITARGET): $(CLIVER) $(CLIOBJ) $(LIBOBJ)
$(CLITARGET): $(CLIOBJ) $(LIBOBJ)
$(CC) $(LDFLAGS) -o $@ $^
$(LIBTARGET): LDFLAGS += -shared