From d6f47d0f9564aeb827e022b00382df222f89f7ae Mon Sep 17 00:00:00 2001 From: zleyyij <75810274+zleyyij@users.noreply.github.com> Date: Sun, 10 Nov 2024 21:36:06 -0700 Subject: [PATCH] vault backup: 2024-11-10 21:36:06 --- education/software development/ECE1400/Chapter 15 Exercises.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/education/software development/ECE1400/Chapter 15 Exercises.md b/education/software development/ECE1400/Chapter 15 Exercises.md index 0b141db..9b95c45 100644 --- a/education/software development/ECE1400/Chapter 15 Exercises.md +++ b/education/software development/ECE1400/Chapter 15 Exercises.md @@ -51,7 +51,10 @@ Macro invocations are evaluated sequentially, and so if `DEBUG` was defined afte > **5.** Suppose that a program consists of three source files - `main.c`, `f1.c`, and `f2.c`- Plus two header files, `f1.h` and `f2.h`. All three source files include `f1.h` but only `f1.c` and `f2.c` include `f2.h`. Write a makefile for this program, assuming that the compiler is `gcc` and that the executable file is to be named `demo`. ```makefile demo: main.o f1.o f2.o + gcc -o demo main.o f1.o f2.o +main.o: main.c f1.h + gcc -c main.c ``` ---