aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-03-11 17:18:59 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-11 17:18:59 +0100
commit22d05ce647281056d71fbd3c31df3bcd6396188d (patch)
tree90208930f54c47987bfd5ffcf0a0acaaad2510da /Makefile
parented5044da43172d86a1aa475473561a4818b7c69c (diff)
parentac6b9c18ef55f4cd36e85069cf0cf82c14e04404 (diff)
downloadlibnitrokey-22d05ce647281056d71fbd3c31df3bcd6396188d.tar.gz
libnitrokey-22d05ce647281056d71fbd3c31df3bcd6396188d.tar.bz2
Merge branch 'libnitrokey_3'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile45
1 files changed, 0 insertions, 45 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 977eae6..0000000
--- a/Makefile
+++ /dev/null
@@ -1,45 +0,0 @@
-CC = $(PREFIX)-gcc
-#CXX = $(PREFIX)-g++
-CXX = clang++-3.8
-LD = $(CXX)
-
-INCLUDE = -Iinclude/
-LIB = -lhidapi-libusb
-BUILD = build
-
-CXXFLAGS = -std=c++14 -fPIC -Wno-gnu-variable-sized-type-not-at-end
-SOFLAGS = -shared
-
-CXXSOURCES = $(wildcard *.cc)
-OBJ = $(CXXSOURCES:%.cc=$(BUILD)/%.o)
-DEPENDS = $(CXXSOURCES:%.cc=$(BUILD)/%.d)
-
-all: $(OBJ) $(BUILD)/libnitrokey.so unittest
-
-lib: $(OBJ) $(BUILD)/libnitrokey.so
-
-$(BUILD)/libnitrokey.so: $(OBJ) $(DEPENDS)
- $(CXX) $(SOFLAGS) $(OBJ) $(LIB) -o $@
-
-$(BUILD)/%.d: %.cc
- $(CXX) -M $< -o $@ $(INCLUDE) $(CXXFLAGS)
-
-$(BUILD)/%.o: %.cc $(DEPENDS)
- $(CXX) -c $< -o $@ $(INCLUDE) $(CXXFLAGS)
-
-clean:
- rm -f $(OBJ)
- rm -f $(BUILD)/libnitrokey.so
- ${MAKE} -C unittest clean
-
-mrproper: clean
- rm -f $(BUILD)/*.d
- ${MAKE} -C unittest mrproper
-
-unittest: $(BUILD)/libnitrokey.so
- ${MAKE} -C unittest
- cd unittest/build && ln -fs ../../build/libnitrokey.so .
-
-.PHONY: all clean mrproper unittest
-
-include $(wildcard build/*.d)