Skip to content

Commit

Permalink
Change diretory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
wangvsa committed Aug 7, 2020
1 parent 7052f16 commit 5c9b528
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
22 changes: 11 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,32 +27,32 @@ CFLAGS += $(CFLAGS_SHARED) ${DISABLED_LAYERS}
LDFLAGS += -L${MPI_DIR}/lib -L${HDF5_DIR}/lib -lhdf5 -ldl


all: lib/librecorder.so tools/C/reader.so tools/C/recorder2text.out tools/C/overlap_conflict.out
all: lib/librecorder.so tools/reader.so tools/recorder2text.out tools/overlap_conflict.out

%.po: %.c | lib
$(CC) $(CFLAGS) -c $< -o $@ $(LDFLAGS)

lib/librecorder.so: lib/recorder-mpi.po lib/recorder-mpi-init-finalize.po lib/recorder-hdf5.po lib/recorder-posix.po lib/recorder-logger.po lib/recorder-utils.po
$(CC) $(CFLAGS) -o $@ $^ -lpthread -lrt -lz $(LDFLAGS)

tools/C/reader.so: tools/C/reader.c
$(CC) -fPIC -shared -ldl $^ -o $@
tools/reader.so: tools/reader.c
$(CC) -fPIC -shared -ldl -I$(srcdir)/include $^ -o $@

tools/C/recorder2text.out: tools/C/recorder2text.c tools/C/reader.c
$(CC) $^ -o $@
tools/recorder2text.out: tools/recorder2text.c tools/reader.c
$(CC) -I$(srcdir)/include $^ -o $@

tools/C/overlap_conflict.out: tools/C/overlap_conflict.c tools/C/reader.c tools/C/build_offset_intervals.cpp
$(CXX) $^ -o $@
tools/overlap_conflict.out: tools/overlap_conflict.c tools/reader.c tools/build_offset_intervals.cpp
$(CXX) -I$(srcdir)/include $^ -o $@


install:: all
install -d $(libdir) $(bindir)
install -m 755 lib/librecorder.so $(libdir)
install -m 755 tools/C/reader.so $(libdir)
install -m 755 tools/C/recorder2text.out $(bindir)
install -m 755 tools/C/overlap_conflict.out $(bindir)
install -m 755 tools/reader.so $(libdir)
install -m 755 tools/recorder2text.out $(bindir)
install -m 755 tools/overlap_conflict.out $(bindir)

clean::
rm -f *.o *.a lib/*.o lib/*.po lib/*.a lib/*.so tools/C/*.so tools/C/recorder2text.out
rm -f *.o *.a lib/*.o lib/*.po lib/*.a lib/*.so tools/*.so tools/*.out

distclean:: clean
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tools/C/reader.h → tools/reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define _RECORDER_READER_H_

#include <stdbool.h>
#include "../../include/recorder-log-format.h"
#include "recorder-log-format.h"


typedef struct RecorderReader_t {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tools/reporter/creader_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def str2char_p(self, s):
return c_char_p( s.encode('utf-8') )

def __init__(self, logs_dir):
libreader = cdll.LoadLibrary("../C/reader.so")
libreader = cdll.LoadLibrary("../reader.so")
libreader.read_records.restype = POINTER(Record)

self.GM = GlobalMetadata()
Expand Down

0 comments on commit 5c9b528

Please sign in to comment.