CFLAGS = -std=c99 LIB_CFLAGS = -fPIC LDLIBS = -ldl -lasound -lm LIB_LDLIBS = -lm all: studio tune.so studio: studio.c tune.h $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS) tune.so : tune.c tune.h $(CC) $(LIB_CFLAGS) -shared $(LDFLAGS) -o $@ $< $(LIB_LDLIBS) clean: $(RM) *.o *.so studio