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