forked from trilogy-libraries/trilogy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request trilogy-libraries#89 from matthewd/build-improvements
Build improvements
- Loading branch information
Showing
5 changed files
with
30 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,10 @@ EXAMPLES = example/trilogy_query | |
|
||
UNAME_S := $(shell uname -s) | ||
|
||
ifneq ($(UNAME_S), Darwin) | ||
ifeq ($(UNAME_S), Darwin) | ||
CFLAGS += "-I$(shell brew --prefix [email protected])/include" | ||
LDFLAGS += "-L$(shell brew --prefix [email protected])/lib" | ||
else | ||
CFLAGS += -fPIC | ||
LDFLAGS += -pie -Wl,-z,relro,-z,now | ||
endif | ||
|
@@ -48,7 +51,7 @@ clean: | |
rm -f test/test $(TEST_OBJS) | ||
|
||
test/test: $(TEST_SOURCES) libtrilogy.a | ||
$(CC) $(CFLAGS) $(LDFLAGS) -o test/test $(TEST_SOURCES) -L. -ltrilogy $(OPENSSL) | ||
$(CC) $(CFLAGS) $(LDFLAGS) -Wno-strict-prototypes -o test/test $(TEST_SOURCES) -L. -ltrilogy $(OPENSSL) | ||
|
||
update_greatest: | ||
curl -o test/greatest.h https://raw.githubusercontent.com/silentbicycle/greatest/master/greatest.h | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters