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/%)
|
|
|
|
$(CC) -o $@ $^ $(LDFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .c .cc .C .cpp .o
|
|
|
|
|
|
|
|
obj/%.o : %.cpp
|
|
|
|
$(CC) -o $@ $< -c $(CFLAGS) $(INCFLAGS) $(CPU_FLAGS)
|
|
|
|
|
|
|
|
obj:
|
|
|
|
mkdir -p obj
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -fr obj i2p
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
.PHONY: clean
|