all: test.so jtag.so armjtag.so jtag-ls2k300.so jtag-ls2k300-static.so cjtag-ls2k300-static.so  cjtag1-ls2k300-static.so  cjtag-ls2k300-paistatic.so cjtag-ls1c.so
%-static.so: %-static.c
	$(CROSS_COMPILE)gcc -g -O2 -fPIC -nostdlib -shared -nostdlib -o $@ $< -I ../include
%-paistatic.so: %-static.c
	$(CROSS_COMPILE)gcc -DCONFIG_JTAG_PAI99 -g -O2 -fPIC -nostdlib -shared -nostdlib -o $@ $< -I ../include
%.so: %.c
	$(CROSS_COMPILE)gcc -g -O2 -fPIC -shared -o $@ $< -I ../include
clean:
	rm -f *.so *.o
