简体   繁体   中英

How can I use “make” in windows? mingw32

I'm just a newbie. I don't know why "make" is not working. I did the instructions in the book.

-I created a makefile.txt

-I put the target, dependencies and the rule/command

encrypt.o: encrypt.c encrypt.h
gcc -c encrypt.c

practice.o: practice.c encrypt.h
gcc -c practice.c

executable: practice.o encrypt.o
    gcc practice.o encrypt.o -o executable

-I'm using 'tab' to indent those commands (gcc -c practice.c, etc. . .) don't know why it's not indenting here.

-then in the command prompt I typed:

make executable

And this error came:

'-make' is not recognized as an internal or external command,
operable program or batch file.

Is there another process for Windows? I'm in Windows 10 using mingw32. I also have TDM-GCC-64. But since I'm a newbie, I don't have any Idea about them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM