2 # You may have to ajust to call the right compiler, or other oprions
3 # for compiling and linking
6 CFLAGS=`xml2-config --cflags`
7 LIBS=`xml2-config --libs`
11 all: runtest$(EXEEXT) runsuite$(EXEEXT) testapi$(EXEEXT) testchar$(EXEEXT)
14 $(RM) runtest$(EXEEXT) runsuite$(EXEEXT) testapi$(EXEEXT)
16 check: do_runtest do_testchar do_testapi do_runsuite
18 runtest$(EXEEXT): runtest.c
19 $(CC) -o runtest$(EXEEXT) $(CFLAGS) runtest.c $(LIBS) $(THREADLIB)
21 do_runtest: runtest$(EXEEXT)
24 runsuite$(EXEEXT): runsuite.c
25 $(CC) -o runsuite$(EXEEXT) $(CFLAGS) runsuite.c $(LIBS)
27 do_runsuite: runsuite$(EXEEXT)
30 testapi$(EXEEXT): testapi.c
31 $(CC) -o testapi$(EXEEXT) $(CFLAGS) testapi.c $(LIBS)
33 do_testapi: testapi$(EXEEXT)
36 testchar$(EXEEXT): testchar.c
37 $(CC) -o testchar$(EXEEXT) $(CFLAGS) testchar.c $(LIBS)
39 do_testchar: testchar$(EXEEXT)