summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-04-02 19:28:10 +0200
committerRoland Reichwein <mail@reichwein.it>2020-04-02 19:28:10 +0200
commitf27702d3cf183f7fbaf88e584bae63a6514d9e65 (patch)
treea94ef7bbdddab36f5364eb32fe1df2f36206e4be /Makefile
parent99d31b767bd2b9d7c7ce7b2a2fb8cb6797252548 (diff)
Added Debian package
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 13d78c8..736387a 100644
--- a/Makefile
+++ b/Makefile
@@ -3,8 +3,10 @@ PROJECTNAME=webserver
CXX=clang++-10
#CXX=g++-9
+ifeq ($(CXXFLAGS),)
#CXXFLAGS=-O2 -DNDEBUG
CXXFLAGS=-O0 -g -D_DEBUG
+endif
# -fprofile-instr-generate -fcoverage-mapping
# gcc:--coverage
@@ -80,6 +82,10 @@ googletest/src/%.o: googletest/src/%.cc
ADD_DEP=Makefile
+install:
+ mkdir -p $(DESTDIR)/usr/bin
+ cp webserver $(DESTDIR)/usr/bin
+
# misc ---------------------------------------------------
clean:
-rm -f test-$(PROJECTNAME) $(PROJECTNAME)