LDFLAGS =  -static
LIBS = -lexpat
CC = gcc
CFLAGS = -g -O3 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -ansi

all: xml2struct

xml2struct: xml2struct.o
	$(CC) -o $@ $< $(LIBS)

static: xml2struct.o
	$(CC) -o $@ $< $(LDFLAGS) $(LIBS)

clean:
	rm -f xml2struct core *.o
