# libpxd/polluxd Makefile

.PHONY := all clean

OPTLEVEL := -O0

CFLAGS := $(LIBPXD_CFLAGS) $(OPTLEVEL)
LDFLAGS := $(LIBPXD_LDFLAGS) $(OPTLEVEL) -lpxd

all: test_path test_route test_url

test_path: test_path.o
	$(CC) -o test_path test_path.o $(LDFLAGS)

test_route: test_route.o
	$(CC) -o test_route test_route.o $(LDFLAGS)

test_url: test_url.o
	$(CC) -o test_url test_url.o $(LDFLAGS)

.c.o:
	$(CC) -o $@ -c -I"`pwd`" $(CFLAGS) $<

clean :
	rm -f *.o test_path
