Makefiles Flashcards
1
Q
How do you declare a variable in a makefile?
do so for:
- clang
- wall
A
CC=clang
CFLAGS = -Wall
2
Q
What are the main sections needed in a makeFile?
A
- variables
- all
- linkedList (your main program)
- object files for each module
- clean
3
Q
Make file: what would the object declaration look like for modules main, node?
- Node has node.c node.h
- main has main.c (it includes node.h)
A
![](https://s3.amazonaws.com/brainscape-prod/system/cm/227/990/937/a_image_thumb.png?1513697843)
4
Q
Makefile: what would be the main compilation for your main program linkedList using :
- nodes.c
- nodes.h
- main.c (which includes nodes.h)
A
![](https://s3.amazonaws.com/brainscape-prod/system/cm/227/991/006/a_image_thumb.png?1513698209)
5
Q
Makefile: what would the clean script look like for your linkedList makefile?
A
![](https://s3.amazonaws.com/brainscape-prod/system/cm/227/991/054/a_image_thumb.png?1513697941)