Re: [xml] makefile sample

emanuele berinotti wrote:
Hi,I'm a newbie, does anyone can post me a simple "makefile" to compile a generic program with libxml2 support....I'm using Gcc 2.9.3 on Solaris 5.7


test: test.o 
        gcc -o test test.o $(shell pkg-config --libs libxml-2.0)

test.o: test.c
        gcc -c test.c $(shell pkg-config --cflags libxml-2.0)

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]