File: Makefile

package info (click to toggle)
golang-github-bep-golibsass 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,840 kB
  • sloc: cpp: 30,477; ansic: 848; sh: 662; makefile: 344; perl: 124
file content (29 lines) | stat: -rw-r--r-- 893 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
CXX ?= c++

CXXFLAGS := -I ../include/ -g -O1 -fno-omit-frame-pointer

LIBSASS_CPPSTD ?= c++11
CXXFLAGS += -std=$(LIBSASS_CPPSTD)
LDFLAGS  += -std=$(LIBSASS_CPPSTD)

test: test_shared_ptr test_util_string

test_shared_ptr: build/test_shared_ptr
	@ASAN_OPTIONS="symbolize=1" build/test_shared_ptr

test_util_string: build/test_util_string
	@ASAN_OPTIONS="symbolize=1" build/test_util_string

build:
	@mkdir build

build/test_shared_ptr: test_shared_ptr.cpp ../src/memory/shared_ptr.cpp | build
	$(CXX) $(CXXFLAGS) ../src/memory/allocator.cpp ../src/memory/shared_ptr.cpp -o build/test_shared_ptr test_shared_ptr.cpp

build/test_util_string: test_util_string.cpp ../src/util_string.cpp | build
	$(CXX) $(CXXFLAGS) ../src/memory/allocator.cpp ../src/util_string.cpp -o build/test_util_string test_util_string.cpp

clean: | build
	rm -rf build

.PHONY: test test_shared_ptr test_util_string clean