Skip to content
Snippets Groups Projects
Commit ba363e88 authored by David Hendriks's avatar David Hendriks
Browse files

save before mob falls out

parent a3a46b4f
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ PROGRAM := binary_c_python_api ...@@ -11,6 +11,7 @@ PROGRAM := binary_c_python_api
SRC_DIR := src SRC_DIR := src
OBJ_DIR := obj OBJ_DIR := obj
INC_DIR := include
# some commands # some commands
CC := gcc CC := gcc
...@@ -24,17 +25,15 @@ LIBS := -lbinary_c $(shell $(BINARY_C)/binary_c-config --libs) ...@@ -24,17 +25,15 @@ LIBS := -lbinary_c $(shell $(BINARY_C)/binary_c-config --libs)
C_SRC := binary_c_python_api.c C_SRC := binary_c_python_api.c
CFLAGS := -fPIC $(shell $(BINARY_C)/binary_c-config --flags | sed s/-fvisibility=hidden// ) CFLAGS := -fPIC $(shell $(BINARY_C)/binary_c-config --flags | sed s/-fvisibility=hidden// )
C_SRC_NEW := src/binary_c_python_api.c C_SRC_NEW := src/binary_c_python_api.c
# SRC = $(wildcard $(SRC_DIR)/binary_c_python_api.c) # SRC = $(wildcard $(SRC_DIR)/binary_c_python_api.c)
# OBJECTS = $(C_SRC:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o)
# Incdirs # Incdirs
INCDIRS := -I$(BINARY_C)/src/ -I$(BINARY_C)/src/API -Iinclude/ INCDIRS := -I$(BINARY_C)/src/ -I$(BINARY_C)/src/API -I$(INC_DIR)/
# Object files and flags # Object files and flags
OBJECTS := $(C_SRC:.c=.o) OBJECTS := $(C_SRC:.c=.o)
OBJ_FLAGS := -c OBJ_FLAGS := -c
OBJ_NEW := $(C_SRC:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o) OBJ_NEW := $(C_SRC_NEW:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o)
# Shared lib files and flags # Shared lib files and flags
SO_NAME := libbinary_c_api.so SO_NAME := libbinary_c_api.so
...@@ -58,7 +57,6 @@ test: ...@@ -58,7 +57,6 @@ test:
@echo INCDIRS: $(INCDIRS) @echo INCDIRS: $(INCDIRS)
@echo OBJS_NEW: $(OBJ_NEW) @echo OBJS_NEW: $(OBJ_NEW)
clean: clean:
$(RM) -f *.o *.so $(RM) -f *.o *.so
$(RM) -r build/ $(RM) -r build/
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment