TARGET = miracle APP_OBJS = miracle.o LIB_OBJS = miracle_log.o \ miracle_server.o \ miracle_connection.o \ miracle_local.o \ miracle_unit.o \ miracle_commands.o \ miracle_unit_commands.o OBJS = $(APP_OBJS) $(LIB_OBJS) CFLAGS = -I .. -Wall -g -D_FILE_OFFSET_BITS=64 -pthread -rdynamic LDFLAGS = -L ../valerie -lvalerie -L ../framework -lmlt SRCS := $(OBJS:.o=.c) all: $(TARGET) $(TARGET): $(APP_OBJS) libmiracle.so $(CC) -o $@ $(APP_OBJS) -L. -lmiracle $(LDFLAGS) libmiracle.so: $(LIB_OBJS) $(CC) -shared -o $@ $(LIB_OBJS) $(LDFLAGS) depend: $(SRCS) $(CC) -MM $(CFLAGS) $^ 1>.depend dist-clean: clean rm -f .depend clean: rm -f $(OBJS) $(TARGET) libmiracle.so ifneq ($(wildcard .depend),) include .depend endif