Browse Source

Move out configurable variables from Makefile to Makefile.conf. Add license information

JSON-35
Damiano Boppart 4 years ago
parent
commit
b1d1238514
1 changed files with 15 additions and 15 deletions
  1. +15
    -15
      server/Makefile

+ 15
- 15
server/Makefile View File

@ -1,14 +1,14 @@
#### Configuration Options ####
#------------------------------
# install all stuff into $(PREFIX)/pEp/json-adapter/
PREFIX = $(HOME)
HTML_DIRECTORY = $(PREFIX)/share/pEp/json-adapter/html
CXX = c++ -std=c++11 -Wall -O0 -g -fstack-protector-all
# end of configuration options
# Copyright 2017 pEp Security SA
#
# This file is part of pEp JSON Server Adapter.
#
# pEp JSON Server Adapter is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License, version 3, as published by the Free Software Foundation.
#
# pEp JSON Server Adapter is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with pEp JSON Server Adapter. If not, see <http://www.gnu.org/licenses/>.
include Makefile.conf
#order does matter, hence I have to split it for static builds:
LIBS1 = -levent -lpEpEngine -lasn1 -luuid -lgpgme -letpan
@ -20,14 +20,14 @@ BUILD_FOR=$(BUILD_ON)
ifeq ($(BUILD_ON),Darwin)
ifeq ($(BUILD_FOR),Darwin)
CXXFLAGS = -I/opt/local/include -I$(HOME)/include -Ijson_spirit
LDFLAGS = -L/opt/local/lib -L$(HOME)/lib $(LIBS1) -lboost_system-mt -lboost_filesystem-mt -lboost_program_options-mt -lboost_thread-mt $(LIBS2)
CXXFLAGS += -I/opt/local/include -I$(HOME)/include -Ijson_spirit
LDFLAGS += -L/opt/local/lib -L$(HOME)/lib $(LIBS1) -lboost_system-mt -lboost_filesystem-mt -lboost_program_options-mt -lboost_thread-mt $(LIBS2)
endif
else
CXXFLAGS = -I$(HOME)/include -I$(HOME)/local/include/ -Ijson_spirit
LDFLAGS = -L$(HOME)/lib -L$(HOME)/local/lib $(LIBS1) -lboost_system -lboost_filesystem -lboost_program_options -lboost_thread $(LIBS2)
CXXFLAGS += -I$(HOME)/include -I$(HOME)/local/include/ -Ijson_spirit
LDFLAGS += -L$(HOME)/lib -L$(HOME)/local/lib $(LIBS1) -lboost_system -lboost_filesystem -lboost_program_options -lboost_thread $(LIBS2)
endif


Loading…
Cancel
Save