# You may modify this file freely. It is not overwritten by oasis
# setup once it exists. See the OMakefile in the topmost directory
# for more documentation.

CFLAGS += -O2
CXXFLAGS += -std=c++11 -fPIC -Ilib/bap_disasm -O2
LDFLAGS += -lstdc++
OCAMLMKLIBFLAGS += -lstdc++

include _oasis_hier.om

# subdirectories
.SUBDIRS: $(OASIS_SUBDIRS)

# local phonies
.PHONY: build-here doc-here install-here uninstall-here reinstall-here pre-install-here clean-here distclean-here

include _oasis_build.om
include _oasis_install.om


DefineBuildRules()
DefineInstallRules()

build-here: $(BUILD_TARGETS)
doc-here: $(BUILD_DOC_TARGETS)
install-here: $(INSTALL_TARGETS)
uninstall-here: $(UNINSTALL_TARGETS)
reinstall-here: $(REINSTALL_TARGETS)
pre-install-here:

clean-here:
    rm -f $(OASIS_clean_list)
    rm -rf $(OASIS_rec_clean_list)
    section
        OASIS_rmdir($(OASIS_dir_clean_list))

distclean-here:
    rm -f $(OASIS_distclean_list)
    rm -rf $(OASIS_rec_distclean_list)
    section
        OASIS_rmdir($(OASIS_dir_distclean_list))

build: build-here
doc: doc-here
install: install-here
uninstall: uninstall-here
reinstall: reinstall-here
clean: clean-here
distclean: distclean-here
