You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
533 B

2 months ago
  1. CXXFLAGS = -O2 -std=c++11 -I..
  2. CXXFLAGS += -Wall -pedantic -Wextra -D_XOPEN_SOURCE=700
  3. SPP_DEPS_1 = spp.h spp_utils.h spp_dlalloc.h spp_traits.h spp_config.h
  4. SPP_DEPS = $(addprefix ../sparsepp/,$(SPP_DEPS_1))
  5. TARGETS = emplace hash_std serialize_file serialize_stream serialize_large
  6. ifeq ($(OS),Windows_NT)
  7. LDFLAGS = -lpsapi
  8. endif
  9. all: $(TARGETS)
  10. clean:
  11. rm -f $(TARGETS) ages.dmp data.dat vsprojects/x64/* vsprojects/x86/*
  12. %: %.cc $(SPP_DEPS) makefile
  13. $(CXX) $(CXXFLAGS) -DNDEBUG $< -o $@ $(LDFLAGS)