0
我嘗試編譯C++手動項目(我是新手)mingw32-make:***沒有目標。停止
我有一個包含MakeFile.am:
ifneq ($(WANT_JANSSON),)
JANSSON_INCLUDES= -I$(top_srcdir)/compat/jansson
else
JANSSON_INCLUDES=
endif
EXTRA_DIST = example-cfg.json nomacro.pl
SUBDIRS = compat
INCLUDES = $(PTHREAD_FLAGS) -fno-strict-aliasing $(JANSSON_INCLUDES)
bin_PROGRAMS = minerd
dist_man_MANS = minerd.1
minerd_SOURCES = elist.h miner.h compat.h \
cpu-miner.c util.c \
sha2.c scrypt.c
ifneq ($(ARCH_x86),)
minerd_SOURCES += sha2-x86.S scrypt-x86.S
endif
ifneq ($(ARCH_x86_64),)
minerd_SOURCES += sha2-x64.S scrypt-x64.S
endif
ifneq ($(ARCH_ARM),)
minerd_SOURCES += sha2-arm.S scrypt-arm.S
endif
minerd_LDFLAGS = $(PTHREAD_FLAGS)
minerd_LDADD = @[email protected] @[email protected] @[email protected] @[email protected]
minerd_CPPFLAGS = @[email protected]
我已經打開Windows的命令提示符,類型:
mingw32-make -f Makefile.am
輸出:
mingw32-make: *** No targets. Stop.
我不知道爲什麼日是錯誤顯示。
THx爲您的答案,我已經makefile.am不是makefile 所以現在我怎樣才能建立該項目? –
簡短的回答是,你不能在Windows上構建它。它是爲UNIX環境創建的。如果你想在Windows上構建它,你首先必須將它移植到Windows上(我假設它尚未被移植過,並且源碼自帶的README文件等並不告訴你如何構建它視窗)。將程序移植到Windows遠遠超出了像StackOverflow這樣的網站的範圍。 – MadScientist