include ../config.mk CFLAGS += -I../inc/ all: libalarm.so libalarm.so.1: libalarm.o $(CC) -shared -o $@ $< $(LDFLAGS) -Wl,-soname,libalarm.so.1 libalarm.so: libalarm.so.1 ln -sf $^ $@ %.o: %.c $(CC) -c -o $@ $< $(LDFLAGS) $(CFLAGS) install: install -Dm755 libalarm.so.1 "$(DESTDIR)/$(PREFIX)/lib/libalarm.so.1" ln -sf libalarm.so.1 "$(DESTDIR)/$(PREFIX)/lib/libalarm.so" make -C python install clean: rm -f libalarm.o libalarm.so.1 make -C python clean .PHONY: python