-AR = ar
+TARGET = libvalerie.so
OBJS = valerie.o \
valerie_notifier.o \
LDFLAGS=-ldv -lpthread
-all: libvalerie.a
+all: $(TARGET)
-libvalerie.a: $(OBJS)
- $(AR) rvu $@ $(OBJS)
- ranlib $@
+$(TARGET): $(OBJS)
+ $(CC) -shared -o $@ $(OBJS) $(LDFLAGS)
depend: $(SRCS)
$(CC) -MM $(CFLAGS) $^ 1>.depend
rm -f .depend
clean:
- rm -f $(OBJS) libvalerie.a
+ rm -f $(OBJS) $(TARGET)
ifneq ($(wildcard .depend),)
include .depend