<commit_before>
include ../Makefile.inc

OBJS = struct.o
SRCS = struct.c

### Add Output Modules Here ###

ifdef ADIOS
  OBJS += adiosstruct.o
  SRCS += adiosstruct.c
endif

# ADIOS Full Output Module

ifdef ADIOS
  CFLAGS += -DHAS_ADIOS -I$(HOME)/ace4/adios/include
  LIBS += -L$(HOME)/ace4/adios/lib -L$(HOME)/ace4/mxml/lib -ladios -lmxml
endif

### if HDF5_DIR is set then enable HDF5 ###
ifdef HDF5_DIR
  LIBS += $(HDF5_DIR)/lib/libhdf5.a -lz -ldl
  INCLUDE += -I$(HDF5_DIR)/include
  OBJS += hdf5struct.o
  SRCS += hdf5struct.c 
  CFLAGS += -DHAS_HDF5
endif

### End of Output Modules ###

CFLAGS += $(OSNINC)

.PHONY: clean depend

struct: $(OSNOBJ) $(OBJS)
	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

clean:
	rm -f *.o struct

depend:
	makedepend -- $(CFLAGS) -- -Y $(SRCS)    # ignore warnings about system headers

.c.o:
	$(CC) $(CFLAGS) -c $< $(INCLUDE)

# DO NOT DELETE
<commit_msg>Updated Makefile to enable/disable compiling with/without ADIOS. Update consistent with other mini-apps.<commit_after>
include ../Makefile.inc

OBJS = struct.o
SRCS = struct.c

# ADIOS Common
ENABLE_ADIOS = 0
ifeq ($(ENABLE_ADIOS),1)
  ADIOS_HOME ?= $(HOME)/ace4/adios
  MXML_HOME ?= $(HOME)/ace4/mxml
  OBJS += adiosstruct.o
  SRCS += adiosstruct.c
  CFLAGS += -DHAS_ADIOS -I$(ADIOS_HOME)/include
  LIBS += -L$(ADIOS_HOME)/lib -ladios -L$(MXML_HOME)/lib -lmxml
endif

### if HDF5_DIR is set then enable HDF5 ###
ifdef HDF5_DIR
  LIBS += $(HDF5_DIR)/lib/libhdf5.a -lz -ldl
  INCLUDE += -I$(HDF5_DIR)/include
  OBJS += hdf5struct.o
  SRCS += hdf5struct.c 
  CFLAGS += -DHAS_HDF5
endif

### End of Output Modules ###

CFLAGS += $(OSNINC)

.PHONY: clean depend

struct: $(OSNOBJ) $(OBJS)
	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

clean:
	rm -f *.o struct

depend:
	makedepend -- $(CFLAGS) -- -Y $(SRCS)    # ignore warnings about system headers

.c.o:
	$(CC) $(CFLAGS) -c $< $(INCLUDE)

# DO NOT DELETE

{'fraction_non_alphanumeric': 0.16817456093666844, 'fraction_numerical': 0.013304949441192123, 'mean_word_length': 3.4339622641509435, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3573981', 'n_tokens_mistral': 818, 'n_tokens_neox': 791, 'n_words': 196}