Loading Makefile +1 −2 Original line number Diff line number Diff line Loading @@ -46,12 +46,10 @@ PY_EXEC := python3 PY_SETUP := setup.py #PY_OPTIONS := build_ext --build-lib $(TARGET_LIB_DIR) PY_OPTIONS := build_ext --inplace # maybe pass argument from here to the setup.py? all: $(CC) -DBINARY_C=$(BINARY_C) $(CFLAGS) $(INCDIRS) $(C_SRC) -o $(OBJECTS) $(OBJ_FLAGS) $(LIBS) $(CC) -DBINARY_C=$(BINARY_C) $(SO_FLAGS) -o $(SO_NAME) $(OBJECTS) @echo pythoniajiajjaaiajaij $(PY_EXEC) $(PY_SETUP) $(PY_OPTIONS) test: Loading @@ -60,6 +58,7 @@ test: @echo C_SRC: $(C_SRC) @echo CFLAGS: $(CFLAGS) @echo INCDIRS: $(INCDIRS) @echo SO_NAME: $(SO_NAME) clean: $(RM) $(OBJ_DIR)/*.o $(TARGET_LIB_DIR)/*.so Loading include/binary_c_python.h +2 −0 Original line number Diff line number Diff line Loading @@ -5,7 +5,9 @@ /* * Include binary_C's API */ #include "binary_c_API.h" // #include "binary_c.h" // #include "binary_c_API_prototypes.h" /* Binary_c's python API prototypes */ Loading setup.py +1 −6 Original line number Diff line number Diff line Loading @@ -61,7 +61,7 @@ BINARY_C_VERSION = ( .stdout.decode("utf-8") .split() ) # check_version(BINARY_C_VERSION[0], REQUIRED_BINARY_C_VERSION) check_version(BINARY_C_VERSION[0], REQUIRED_BINARY_C_VERSION) BINARY_C_INCDIRS = ( subprocess.run( Loading Loading @@ -110,10 +110,6 @@ for x in DEFINES: if y: BINARY_C_DEFINE_MACROS.extend([(y.group(1), None)]) # add API header file API_h = os.path.join(BINARY_C_DIR, "src", "API", "binary_c_API.h") BINARY_C_DEFINE_MACROS.extend([("BINARY_C_API_H", API_h)]) ############################################################ # Setting all directories and LIBRARIES to their final values ############################################################ Loading Loading @@ -153,7 +149,6 @@ print("LIBRARIES: ", str(LIBRARIES) + "\n") print("LIBRARY_DIRS: ", str(LIBRARY_DIRS) + "\n") print("RUNTIME_LIBRARY_DIRS: ", str(RUNTIME_LIBRARY_DIRS) + "\n") print("BINARY_C_CFLAGS: ", str(BINARY_C_CFLAGS) + "\n") print("API_h: ", str(API_h) + "\n") print("macros: ", str(BINARY_C_DEFINE_MACROS) + "\n") print('\n') Loading Loading
Makefile +1 −2 Original line number Diff line number Diff line Loading @@ -46,12 +46,10 @@ PY_EXEC := python3 PY_SETUP := setup.py #PY_OPTIONS := build_ext --build-lib $(TARGET_LIB_DIR) PY_OPTIONS := build_ext --inplace # maybe pass argument from here to the setup.py? all: $(CC) -DBINARY_C=$(BINARY_C) $(CFLAGS) $(INCDIRS) $(C_SRC) -o $(OBJECTS) $(OBJ_FLAGS) $(LIBS) $(CC) -DBINARY_C=$(BINARY_C) $(SO_FLAGS) -o $(SO_NAME) $(OBJECTS) @echo pythoniajiajjaaiajaij $(PY_EXEC) $(PY_SETUP) $(PY_OPTIONS) test: Loading @@ -60,6 +58,7 @@ test: @echo C_SRC: $(C_SRC) @echo CFLAGS: $(CFLAGS) @echo INCDIRS: $(INCDIRS) @echo SO_NAME: $(SO_NAME) clean: $(RM) $(OBJ_DIR)/*.o $(TARGET_LIB_DIR)/*.so Loading
include/binary_c_python.h +2 −0 Original line number Diff line number Diff line Loading @@ -5,7 +5,9 @@ /* * Include binary_C's API */ #include "binary_c_API.h" // #include "binary_c.h" // #include "binary_c_API_prototypes.h" /* Binary_c's python API prototypes */ Loading
setup.py +1 −6 Original line number Diff line number Diff line Loading @@ -61,7 +61,7 @@ BINARY_C_VERSION = ( .stdout.decode("utf-8") .split() ) # check_version(BINARY_C_VERSION[0], REQUIRED_BINARY_C_VERSION) check_version(BINARY_C_VERSION[0], REQUIRED_BINARY_C_VERSION) BINARY_C_INCDIRS = ( subprocess.run( Loading Loading @@ -110,10 +110,6 @@ for x in DEFINES: if y: BINARY_C_DEFINE_MACROS.extend([(y.group(1), None)]) # add API header file API_h = os.path.join(BINARY_C_DIR, "src", "API", "binary_c_API.h") BINARY_C_DEFINE_MACROS.extend([("BINARY_C_API_H", API_h)]) ############################################################ # Setting all directories and LIBRARIES to their final values ############################################################ Loading Loading @@ -153,7 +149,6 @@ print("LIBRARIES: ", str(LIBRARIES) + "\n") print("LIBRARY_DIRS: ", str(LIBRARY_DIRS) + "\n") print("RUNTIME_LIBRARY_DIRS: ", str(RUNTIME_LIBRARY_DIRS) + "\n") print("BINARY_C_CFLAGS: ", str(BINARY_C_CFLAGS) + "\n") print("API_h: ", str(API_h) + "\n") print("macros: ", str(BINARY_C_DEFINE_MACROS) + "\n") print('\n') Loading