mirror of
https://github.com/kgabis/parson.git
synced 2025-03-12 13:55:31 +00:00
[dev] Accommodate macOS
This commit is contained in:
parent
401776f006
commit
44ede0f770
12
.gitignore
vendored
12
.gitignore
vendored
@ -1,8 +1,10 @@
|
||||
.DS_Store
|
||||
test
|
||||
.vscode
|
||||
*.dSYM
|
||||
*.o
|
||||
testcpp
|
||||
tests/test_2_serialized.txt
|
||||
tests/test_2_serialized_pretty.txt
|
||||
test_hash_collisions
|
||||
build/**
|
||||
test
|
||||
test_hash_collisions
|
||||
testcpp
|
||||
tests/test_2_serialized_pretty.txt
|
||||
tests/test_2_serialized.txt
|
||||
|
16
Makefile
16
Makefile
@ -1,8 +1,15 @@
|
||||
CC = gcc
|
||||
CFLAGS = -O0 -g -Wall -Wextra -Wno-deprecated-declarations -std=c89 -pedantic-errors -DTESTS_MAIN
|
||||
UNAME := $(shell uname -s)
|
||||
|
||||
CPPC = g++
|
||||
CPPFLAGS = -O0 -g -Wall -Wextra -Wno-deprecated-declarations -DTESTS_MAIN
|
||||
ifeq ($(UNAME), Darwin)
|
||||
CC := $(shell which gcc-12)
|
||||
CPPC := $(shell which g++-12)
|
||||
else
|
||||
CC := $(shell which gcc)
|
||||
CPPC := $(shell which g++)
|
||||
endif
|
||||
|
||||
CFLAGS := -O0 -g -Wall -Wextra -Wno-deprecated-declarations -DTESTS_MAIN -std=c89 -pedantic-errors
|
||||
CPPFLAGS := -O0 -g -Wall -Wextra -Wno-deprecated-declarations -DTESTS_MAIN
|
||||
|
||||
all: test testcpp test_hash_collisions
|
||||
|
||||
@ -21,4 +28,3 @@ test_hash_collisions: tests.c parson.c
|
||||
|
||||
clean:
|
||||
rm -f test *.o
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user