Makefile.tests 912 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #
  2. # You may have to ajust to call the right compiler, or other oprions
  3. # for compiling and linking
  4. #
  5. CFLAGS=`xml2-config --cflags`
  6. LIBS=`xml2-config --libs`
  7. THREADLIB= -lpthread
  8. EXEEXT=
  9. all: runtest$(EXEEXT) runsuite$(EXEEXT) testapi$(EXEEXT) testchar$(EXEEXT)
  10. clean:
  11. $(RM) runtest$(EXEEXT) runsuite$(EXEEXT) testapi$(EXEEXT)
  12. check: do_runtest do_testchar do_testapi do_runsuite
  13. runtest$(EXEEXT): runtest.c
  14. $(CC) -o runtest$(EXEEXT) $(CFLAGS) runtest.c $(LIBS) $(THREADLIB)
  15. do_runtest: runtest$(EXEEXT)
  16. ./runtest
  17. runsuite$(EXEEXT): runsuite.c
  18. $(CC) -o runsuite$(EXEEXT) $(CFLAGS) runsuite.c $(LIBS)
  19. do_runsuite: runsuite$(EXEEXT)
  20. ./runsuite
  21. testapi$(EXEEXT): testapi.c
  22. $(CC) -o testapi$(EXEEXT) $(CFLAGS) testapi.c $(LIBS)
  23. do_testapi: testapi$(EXEEXT)
  24. ./testapi
  25. testchar$(EXEEXT): testchar.c
  26. $(CC) -o testchar$(EXEEXT) $(CFLAGS) testchar.c $(LIBS)
  27. do_testchar: testchar$(EXEEXT)
  28. ./testchar