Research portable Memory game | Исследовать портируемую игру Память
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.

32 lines
650B

  1. HASHDIR = ../../src
  2. PROGS = test1 test2
  3. # Thread support requires compiler-specific options
  4. # ----------------------------------------------------------------------------
  5. # GNU
  6. CFLAGS += -I$(HASHDIR) -g -pthread
  7. # Solaris (Studio 11)
  8. #CFLAGS = -I$(HASHDIR) -g -mt
  9. # ----------------------------------------------------------------------------
  10. ifeq ($(HASH_DEBUG),1)
  11. CFLAGS += -DHASH_DEBUG=1
  12. endif
  13. all: $(PROGS) run_tests
  14. $(PROGS) : $(HASHDIR)/uthash.h
  15. $(CC) $(CPPLFAGS) $(CFLAGS) $(LDFLAGS) -o $@ $(@).c
  16. debug:
  17. $(MAKE) all HASH_DEBUG=1
  18. run_tests: $(PROGS)
  19. perl ../do_tests
  20. .PHONY: clean
  21. clean:
  22. rm -f $(PROGS) test*.out
  23. rm -rf test*.dSYM