2014-07-16 20:59:17 +04:00
|
|
|
UNAME := $(shell uname -s)
|
2013-12-10 17:05:42 +04:00
|
|
|
|
2014-07-16 20:59:17 +04:00
|
|
|
ifeq ($(UNAME),Darwin)
|
|
|
|
include Makefile.osx
|
2014-08-11 17:51:53 +04:00
|
|
|
else ifeq ($(UNAME), FreeBSD)
|
|
|
|
include Makefile.bsd
|
2014-07-16 20:59:17 +04:00
|
|
|
else
|
|
|
|
include Makefile.linux
|
2014-06-02 18:05:04 +04:00
|
|
|
endif
|
|
|
|
|
2014-09-19 07:35:51 +04:00
|
|
|
all: obj i2p
|
|
|
|
|
|
|
|
i2p: $(OBJECTS:obj/%=obj/%)
|
2014-10-30 00:54:47 +03:00
|
|
|
$(CXX) -o $@ $^ $(LDFLAGS) $(LIBS)
|
2014-09-19 07:35:51 +04:00
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .c .cc .C .cpp .o
|
|
|
|
|
|
|
|
obj/%.o : %.cpp
|
2014-10-30 04:42:06 +03:00
|
|
|
$(CXX) -o $@ $< -c $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) $(CPU_FLAGS)
|
2014-09-19 07:35:51 +04:00
|
|
|
|
|
|
|
obj:
|
|
|
|
mkdir -p obj
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -fr obj i2p
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
.PHONY: clean
|