summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 5 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index 43e275c..5952cab 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,7 @@
TARGET = const
CFLAGS += -Wall -Wextra -Wshadow -pedantic -g
-CFLAGS += $(shell echo $(fast) | sed -e 's/yes/-DFAST_AS_FUCK/g')
-LDLIBS += -L$(shell jemalloc-config --libdir) -Wl,-rpath,$(shell jemalloc-config --libdir) -ljemalloc $(shell jemalloc-config --libs)
-LDLIBS += -lprofiler
-ACO_FLAGS = -Wall -Werror -DACO_USE_VALGRIND
+LDLIBS += -ljemalloc $(shell jemalloc-config --libs)
+ACO_FLAGS = -Wall -Werror
RM ?= rm -f
all: $(TARGET)
@@ -17,15 +15,10 @@ $(ACO): $(ACO_SRC)
log.o: log.c log.h
-$(TARGET): const.c $(ACO) $(ACO_ASM) log.o
+sds.o: sds/sds.c sds/sds.h
+ $(CC) -c -o sds.o -Wall -std=c99 -pedantic -O2 sds/sds.c
-very_const: very_const.c log.o
-
-cc: cc_const.cc log.c log.h
- $(CXX) cc_const.cc log.c -o cc_const $(CFLAGS) $(LDLIBS) -lstdc++ --std=c++14
-
-run: $(TARGET)
- ./$(TARGET)
+$(TARGET): const.c $(ACO) $(ACO_ASM) log.o sds.o
clean:
$(RM) $(TARGET) *.o