mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-11-16 00:12:43 +00:00
25b5068f5e
Move old LDFLAGS variable to LDLIBS. By doing ths, a user can set their own LDFLAGS without breaking the build. A case in which this can be useful is hardening with debian, e.g. $ dpkg-buildflags --get LDFLAGS -Wl,-z,relro
30 lines
454 B
Makefile
30 lines
454 B
Makefile
UNAME := $(shell uname -s)
|
|
|
|
ifeq ($(UNAME),Darwin)
|
|
include Makefile.osx
|
|
else ifeq ($(UNAME), FreeBSD)
|
|
include Makefile.bsd
|
|
else
|
|
include Makefile.linux
|
|
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
|