sygcpp/Makefile
R4SAS 7b64aba9da
init restructured 1.1 release
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2020-08-17 11:38:24 +03:00

33 lines
523 B
Makefile

SYS := $(shell $(CXX) -dumpmachine)
CXX = g++
SYG_SRC = sygcpp.cpp
SYGCPP = sygcpp
LDFLAGS = -O3 -s
LDLIBS = -lcrypto -lpthread
SYG_OBJS += $(patsubst %.cpp,obj/%.o,$(SYG_SRC))
ifneq (, $(findstring mingw, $(SYS))$(findstring cygwin, $(SYS)))
include Makefile.mingw
endif
all: mk_obj_dir $(SYGCPP)
mk_obj_dir:
@mkdir -p obj/windows
clean:
$(RM) -r obj $(SYGCPP)
obj/%.o: %.cpp
$(CXX) -c -o $@ $<
$(SYGCPP): $(SYG_OBJS)
$(CXX) -o $@ $^ $(LDFLAGS) $(LDLIBS)
.PHONY: all
.PHONY: clean
.PHONY: mk_obj_dir