summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-03-05 20:30:24 -0600
committerTristan Sloughter <t@crashfast.com>2015-03-05 20:30:24 -0600
commit8ff6a9f93539a66531bb217b3cd357b04eb76ea6 (patch)
tree2da934d4c0af774bfc3547bb0d164962b155a1b9
parent2a7e0ff2b42b762d541cfebc22f7cd9d18c87733 (diff)
makefile tabs replace spaces and force clean
-rw-r--r--priv/templates/Makefile.dtl34
1 files changed, 17 insertions, 17 deletions
diff --git a/priv/templates/Makefile.dtl b/priv/templates/Makefile.dtl
index e168f6c..d3c3767 100644
--- a/priv/templates/Makefile.dtl
+++ b/priv/templates/Makefile.dtl
@@ -17,18 +17,18 @@ C_SRC_OUTPUT ?= $(CURDIR)/../priv/$(PROJECT).so
UNAME_SYS := $(shell uname -s)
ifeq ($(UNAME_SYS), Darwin)
- CC ?= cc
- CFLAGS ?= -O3 -std=c99 -arch x86_64 -finline-functions -Wall -Wmissing-prototypes
- CXXFLAGS ?= -O3 -arch x86_64 -finline-functions -Wall
- LDFLAGS ?= -arch x86_64 -flat_namespace -undefined suppress
+ CC ?= cc
+ CFLAGS ?= -O3 -std=c99 -arch x86_64 -finline-functions -Wall -Wmissing-prototypes
+ CXXFLAGS ?= -O3 -arch x86_64 -finline-functions -Wall
+ LDFLAGS ?= -arch x86_64 -flat_namespace -undefined suppress
else ifeq ($(UNAME_SYS), FreeBSD)
- CC ?= cc
- CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
- CXXFLAGS ?= -O3 -finline-functions -Wall
+ CC ?= cc
+ CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
+ CXXFLAGS ?= -O3 -finline-functions -Wall
else ifeq ($(UNAME_SYS), Linux)
- CC ?= gcc
- CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
- CXXFLAGS ?= -O3 -finline-functions -Wall
+ CC ?= gcc
+ CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes
+ CXXFLAGS ?= -O3 -finline-functions -Wall
endif
CFLAGS += -fPIC -I $(ERTS_INCLUDE_DIR) -I $(ERL_INTERFACE_INCLUDE_DIR)
@@ -55,20 +55,20 @@ COMPILE_C = $(c_verbose) $(CC) $(CFLAGS) $(CPPFLAGS) -c
COMPILE_CPP = $(cpp_verbose) $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c
$(C_SRC_OUTPUT): $(OBJECTS)
- @mkdir -p $(BASEDIR)/priv/
- $(link_verbose) $(CC) $(OBJECTS) $(LDFLAGS) $(LDLIBS) -o $(C_SRC_OUTPUT)
+ @mkdir -p $(BASEDIR)/priv/
+ $(link_verbose) $(CC) $(OBJECTS) $(LDFLAGS) $(LDLIBS) -o $(C_SRC_OUTPUT)
%.o: %.c
- $(COMPILE_C) $(OUTPUT_OPTION) $<
+ $(COMPILE_C) $(OUTPUT_OPTION) $<
%.o: %.cc
- $(COMPILE_CPP) $(OUTPUT_OPTION) $<
+ $(COMPILE_CPP) $(OUTPUT_OPTION) $<
%.o: %.C
- $(COMPILE_CPP) $(OUTPUT_OPTION) $<
+ $(COMPILE_CPP) $(OUTPUT_OPTION) $<
%.o: %.cpp
- $(COMPILE_CPP) $(OUTPUT_OPTION) $<
+ $(COMPILE_CPP) $(OUTPUT_OPTION) $<
clean:
- @rm $(C_SRC_OUTPUT) $(OBJECTS)
+ @rm -f $(C_SRC_OUTPUT) $(OBJECTS)