summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ba28c77..c7c7777 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
CC := /usr/bin/gcc
-CFLAGS = -Wall -Wpedantic -I$(INC_DIR) -O2
+CFLAGS = -Wall -Wpedantic -I$(INC_DIR) -O2 -fPIC
LDLIBS := -lm
# DIRS
@@ -7,12 +7,14 @@ BASE_DIR = $(pwd)
SRC_DIR = src
BIN_DIR = bin
OBJ_DIR = obj
-#LIB_DIR := lib
+LIB_DIR := lib
BUILD_DIR = build
INC_DIR = include
+EXAMPLE_DIR = example
# TARGETS
-TARGET := $(BIN_DIR)/catragmx
+LIBBALLISTIC := $(LIB_DIR)/libballistic.so
+EXAMPLE := $(BIN_DIR)/example
SOURCES := $(wildcard $(SRC_DIR)/*.c)
OBJECTS := $(SOURCES:$(SRC_DIR)/%.c=$(BUILD_DIR)/%.o)