BUILD_ROOT = ../.. SHELL= /bin/sh VPATH= @srcdir@ subdirs= @subdirs@ top_srcdir= @top_srcdir@ srcdir = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = ${exec_prefix}/tests/bin sbindir = ${exec_prefix}/tests/sbin datadir = ${exec_prefix}/tests/data infodir = ${prefix}/info libdir = ${prefix}/lib mandir = ${prefix}/man/man1 DESTDIR=@DESTDIR@ CC = @CC@ CPPFLAGS = @CPPFLAGS@ CFLAGS = $(CPPFLAGS) @CFLAGS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ INSTALL = @INSTALL@ DCE_DIR = @dce_dir@ ARCH_FLAGS = @ARCH_FLAGS@ EVTRPCCLIENT_DIR = $(BUILD_ROOT)/client EVTRPCCLIENT_LIB = $(EVTRPCCLIENT_DIR)/libevtrpcclient.a EVTCOMMON_DIR = $(BUILD_ROOT)/common EVTCOMMON_LIB = $(EVTCOMMON_DIR)/libevtcommon.a CFLAGS += -I$(DCE_DIR)/include CFLAGS += -I$(BUILD_ROOT)/idl CFLAGS += -I$(EVTRPCCLIENT_DIR) CFLAGS += -I$(EVTCOMMON_DIR) CFLAGS += $(ARCH_FLAGS) LDFLAGS += -L$(DCE_DIR)/lib LIBS += -ldcerpc LIBS += -ldcethread LIBS += -lunistr OBJS = main.o PROGRAM = importevents DATA = sample_data2.csv all : $(PROGRAM) $(PROGRAM) : $(OBJS) $(EVTRPCCLIENT_LIB) $(EVTCOMMON_LIB) $(CC) -o $@ $(OBJS) $(EVTRPCCLIENT_LIB) $(EVTCOMMON_LIB) -Bdynamic $(LDFLAGS) $(LIBS) $(OBJS) : %.o : %.c $(CC) -c $(CFLAGS) $< -o $@ clean : $(RM) $(OBJS) $(PROGRAM) *~ distclean: clean $(RM) Makefile install: all @echo $(DESTDIR) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(sbindir) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(libdir) $(INSTALL) $(PROGRAM) $(DESTDIR)$(sbindir) $(INSTALL) $(DATA) $(DESTDIR)$(datadir) uninstall: -/bin/rm -f $(DESTDIR)$(bindir)/$(PROGRAM)