AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Xinu + makefile for c program11/21/2023 #Use something like this to run `make clean` which deletes your object files, so you can do a fresh compile.Īs a side note, you would be served well not to blame your professor for not spelling out everything for you. $(CC) $(CFLAGS) huffmanGenerator.cpp -o huffmanGenerator # Add whatever flags you want to use here. # You can change your compiler to gcc / g++ here. Here is an example of a makefile, that I think does what you are asking. Whitespace (tabs/spaces/new lines) have meaning in these files, so you should use an editor that won't add formatting to the file. Should I just save one in word? (Assume you mean Microsoft Word.) You can also name it whatever you want as long as you specify the name when you run it (make -f filename). The reason the name matters is because when you run the make command, it looks for a file with this name by default for directions on how to compile your code. It should be a plaintext file called Makefile or makefile. What kind of file should the makefile be?
0 Comments
Read More
Leave a Reply. |