all: menu2.so form2.so

menu2.so: LIBS := -lmenu

form2.so: LIBS := -lform

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