all: menu2.so form2.so cdk_wrapper.so

menu2.so: LIBS := -lmenu

form2.so: LIBS := -lform

cdk_wrapper.so: LIBS := -lcdkw

%.so: %.c
	rm -f $@
	gcc -shared -fPIC -Wall -pedantic -o $@ $< $(LIBS)

clean:
	rm -f *.so *.fasl
