i2pd/Makefile

30 lines
454 B
Makefile
Raw Normal View History

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