Skip to content

Commit

Permalink
cleanup makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmealey committed May 24, 2024
1 parent aa7d58b commit d2b3fca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
run: brew install json-c

- name: make
run: make CFLAGS="-I$(brew --prefix)/include" LDFLAGS="-L$(brew --prefix)/lib"
run: make

- name: sanity test
run: ./trurl -v
Expand Down
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,13 @@ ifndef NDEBUG
CFLAGS += -g
endif
ifdef TRURL_JSON_IN
CFLAGS += -DTRURL_JSON_IN -Wno-gnu -I /opt/homebrew/include
LDLIBS += -ljson-c -L /opt/homebrew/lib
prefix := $(shell brew --prefix)
ifneq ($(strip $(prefix)),)
CFLAGS += -I$(prefix)/include
LDLIBS += -L$(prefix)/lib
endif
CFLAGS += -DTRURL_JSON_IN -Wno-gnu
LDLIBS += -ljson-c
endif
MANUAL = trurl.1

Expand Down

0 comments on commit d2b3fca

Please sign in to comment.